But on a more serious note.
I have canned dry foods that I bought canned. I have Mylar packed dry foods that I have packed myself, including vegetables that I bought frozen and dried myself. And I have canned moist foods such as vegetables, meats, beans, etc.
The least expensive - but greatest space requirements - is definitely just buy what you eat. Get a few extra cans each week.
For longer term storage, such as grains, pastas, and dried vegetables, etc., I suggest buying a sealer suitable for Mylar bags and vacuum packing your own with oxygen absorbers. It is about 1/4 the cost of buying these things in cans. And you don't have to pay shipping if you buy your grains and pasta locally.
The most expensive method is to buy and have shipped commercially packaged dry or dehydrated foods. All other things being equal, you might get more flavor - for better or worse, depending on your opinion - with the commercially packaged things because some of those cans include some spices. Then again, spices are pretty easy to buy and store locally.
If you've ever eaten a dehydrated and reconstituted camping or trail meal, you will know whether you like the commercially prepared stuff. To me, that stuff is just like the plain unflavored stuff in that both are edible if you have to but until then, I'll stick with my every day canned foods just like I would normally buy.
Of all the options, my choice and suggestion is packing your own in Mylar bags and sealing them yourself.
Besides, in post 4 you asked only about prices.
