Higher acid foods don't last as long as no acid foods.
Cans with solid tops I find last longer then cans with easy open lids.
I went through a horders house about a year ago. I found baked beans that were ten years old and looked good. I also found canned stew that was ten years old and the can looked good. I also found canned tomatoes that the can was completely empty. Same thing with canned pineapple can completely empty.
So if push came to shove. I would have to say I would eat the baked beans and stew. Though right now I wouldn't eat anything much passed the expiration date. There is a reason they put the date on the can.