When a piston is activated on a pumpkin, it is directly destroyed. Or it's the game, I don't know.
MC-11723 Snowmans can't be created by pushing the head with a piston
MC-176701 when a piston pushes a pumpkin to make a snow golem the pumpkin disappears.
MC-231964 every pumpkin type bugged