Being inside a solid block causes you to be pushed towards glass, despite it too being solid
In this setup, place a ring consisting of seven cobblestone with one eighth side block being glass, and make a gravel block fall onto you. Notice how you're forced towards the direction of the glass block, despite it being as solid as the others.