These molecules make up B different substances.
The first molecule has the formula C3H6O, while the second molecule has the formula C3H8O. The difference in the number of hydrogen atoms indicates that they are different compounds, despite having the same number of carbon and oxygen atoms.