In Super Mario 64, it is possible for Mario to enter a squished state such as that from being hit by a heavy enemy without actually taking damage, as the game is coded to only damage Mario if the object squishes him all the way down to the floor. The footage demonstrates this with one of the Spindel enemies inside the pyramid in Shifting Sand Land.
Main Blog | Twitter | Patreon | Source: SM64 (NA, N64)