> Generally for most goods markets work really well. There's two intrinsic failure cases: externalities and monopolies.
I agree, but you are omitting two other cases: Equity and availability.
Again, markets are built to serve those who provide the highest profit. That's fine for iPhones, but not for health, safety, education, basic food, and basic shelter. Everyone should have those, regardless of how much profit they provide.
Markets also depend on 'creative destruction', businesses fail and their goods and services go away. That can't happen with healthcare, food, education, safety, and shelter. There are 'food deserts' in poor communities, where people can't get anything but expensive corner-store groceries. We can't have a safety, education, shelter, or healthcare desert (or a food desert).
Unless we are in a monopoly situation there are other vendors for common goods.
If a super market goes out of business there are several others though perhaps further away.
The idea of "Food deserts" is around the poor availability of affordable "nutritious" food. There is plenty of food in these food deserts with many different food providers.
So it's not about general food availability, it's around what food is stocked.
Which food are stocked is almost completely determined by supply and demand. We know the supply exists, so if there a lack of stock it's due to demand.
What other explanation is there ? A shadowy cabal making sure the poor can't access certain foods ?
So arguably housing fits into the monopoly bucket, especially if you lean towards a land value tax.
Safety and a monopoly on force most would argue are the domains of government.
But the rest of your examples seem fine to be market based, though the devil is in the detail.