If you want to play a different game, such as maximizing nutrition, maximizing taste or texture instead of appearance in an ad, meet some specific health goal, or try something that might (or might not) be enjoyable, then home cooking is better.
By analogy its like the difference between formulaic pulp fiction mass market paperbacks vs the total sum of all human literature ever written.
Delivery is more profitable, but profit does not imply better food. A bad HN car analogy is delivery/restaurant food is like a 70s american car before the foreign car invasion; someone's making money but its not a good product.
So I'd be looking at about 4x the cost if I ate a delivery pizza every day.
How do the figures compare in your area? Is delivery food radically cheaper?
A couple of footnotes: 1. Pizza is absurdly cheap, even for takeout food. I don't really understand how that works. 2. I prefer takeout over paying for delivery, which saves a lot. My favorite pizza places are in walking distance.
Too often we'd order Indian and realise they had added extra salt to preserve some 'overstock'
Also, invariably the content in takeaway food is the lowest cost produce.
If you care about where your food comes from and what goes into it you cut out the middleman.
The big one is that I know what's in it and can select/exclude ingredients based on my own criteria. Another big plus is that I can tweak the flavors to match my preferences.