That is probably some good theory crafting, but I have no idea as that is a level of psychology that is beyond me. (That sentence looks a little smart-ass, but it absolutely isn’t, btw. 100% curious.)
Personally, I can say is that I tend avoid foods that cause pain and may even subconsciously steer away from them too. I don’t actively seek out things like tomato sauce, but wouldn’t likely turn down a free spaghetti meal either.
I do also tend to prefer cereal and milk, generally heavy fiber types. Antacids are great, but sometimes, just giving my stomach something harder to break down works fine too.