The Glock 17 is VERY PRONE to this type of jam. I can jam one any time I want to, and used to do it on the range, to stress the importance of a firm grip to officers I was training. The 1911 can be jammed this way but, not repeatedly.
The polymer frame on a Glock does not compress, it flexes, but the real cause is the 9mm round is anemic to the point that the combination of heavy slide and weak spring, makes it easy to take away the momentum from the slide, that it needs to properly cycle. I never used my thumb, a weak grip, and weak wrist was all that was required to cause stoppages in this model and caliber. I have never tried it in any other 9mm Model Glocks, but have in several 40s, and 45s. I could not. Just the 9mm 17. Other 9mm Glocks? Would just have to try it and see.
I have seen many officers, when after seeing this demonstration, go out and get a heavier caliber, while some did not care, because they really never thought it could happen to them.