Glass also has a fixed time-to-break, which does make it the better option over sandstone in very niche situations, say, where you can afford a large amount of glass but cannot yet afford obsidian.
Chests are a much better item for this though, as they take a lot longer to break than glass.
Chests are a much better item for this though, as they take a lot longer to break than glass.