I played Subnautica recently and food there does spoil. While the game mechanic fits into a survival game, I found it just tedious. I don't want to micro manage hunger and food in an RPG.

Finding rotten food in containers is fine, though.