I definitely don't agree with this part. Home cooking is often significantly better than restaurants. Not only are cooking and running a restaurant very different skill sets (and 'just hire a really good chef' isn't really viable for a typical restaurant), but you also have issues of scale. Creating a diverse menu that can be created, on demand, in a short period of time imposes significant limitations on what you can produce.
Another is that cheaping out on something in a dish at home can save you perhaps 60x over a month, but doing so at a restaurant can save you thousands of times that. So they tend to be using worse quality ingredients which end up being sold for much more because they're also needing to pay for labor, rent, electric, and much more - before they hopefully make some profit on the month. This is how you get things like fast food franchises typically being single digit profit margins enterprises in spite of selling large volumes of low quality food for relatively high prices.
The comparison between home cooking and high end restaurants is certainly much closer, but also not entirely one-way. So for instance one issue I have with restaurant food is that it tends to be excessively salted. This is largely because the more people consume salt, the more they need of it to experience the same 'flavor'. It's kind of like a drug in that regard. So when somebody who minimizes the amount of salt they consume goes to a high end restaurant, it can often tastes like freebasing pure salt. I'm sure to their average customer it tastes fine, but it's subjective, and it's also why something like 100,000 Americans die per year of salt driven disease. To put that into scale we're already approaching (if have not already exceeded) more Americans dying of salt, over the past decade, than COVID.
Scale does matter, though. The little thing that elevates restaurant (and especially "street food", for some reason) is usually garnishes. Small amounts of fresh ingredients are a big pain for home cooking because they require disproportionately more effort. Whereas the things that do do better at home tend to be long slow dishes that you don't get in restaurants because of the lead time.
It's certainly very easy to do better than chain fast food. And my opinion of a certain local cafe was diminished once I got a Costco card and recognized the muffins.