They don't have a chicken because they don't have an egg.. they don't have an egg because "Fuck chickens; move to Manhattan if you want chickens."
Clearly, higher density construction in NYC has dramatically reduce prices there.
There is no amount of construction in the subset of 49 square miles trendies want to live that is going to solve this problem. There are a million 1%'ers from around the world that will snap up a $750K condo before you 5%'ers can get it.
They have.[1]
Or more accurately, they have prevented the exact sort of rent explosion that SF is experiencing now. Manhattan is expensive to live in - but rent prices are growing at predictable and relatively low rates. There are even desirable, wealthy neighborhoods where rents are slowly decreasing.
The fact is also that artificially restricting oneself to Manhattan makes for a easier comparison to SF, but is not representative of the housing situation overall. Commuting from Brooklyn, Queens, and the Bronx into Manhattan is trivially easy, and rent (even if we strictly limit ourselves to the low-crime, desirable sections of these boroughs) is lower than SF.
Take Brooklyn[2] for example. Plenty of good, safe neighborhoods with solid subway access where prices are flat.
Many desirable neighborhoods are seeing market rents increases in the double-digit percentages, every year. Some parts of SF are experiencing >20% YoY growth.
That's real estate hyperinflation, far in excess of the normal appreciation you'd expect in a healthy economy with increasing population.
And the solution to real estate hyperinflation is to build more.