So I tried messing around with bob-omb's and coins and such looking for collision detection anomalies, and this happened.
For 1 frame, Mario got snapped to wall horizontally (sorry for the bad pic) while being pushed into the grating by the bob-omb.
Not really sure what to make of it, anyone seen this before? He pops back out normally the next frame.
Here is a savestate, just hold down on the control stick after it loads to recreate this effect.
https://www.dropbox.com/s/9lpfcs66wk3kxkm/Super%20Mario%2064%20%28J%29%20%5B%21%5D.st1?dl=0
You can do other interesting things from that savestate too. If you hold left on the control stick until the bob-omb explodes, you get pushed out of bounds.
EDIT: you can even do a ground pound while in this orientation. and he ground pounds towards the wall instead of the floor (but hits the grating instead)
EDIT2: also, the game thinks mario is under the triangel at -5365, even though he is only at -5211, so it must have put him there at some intermediate step
my only guess is that the game can't resolve what to do with Mario, so it rotates his sprite to at least fit him in the wall for a frame and hopes for things to change. Does anyone know the address for mario's sprite orientation?