And yet, a cheaper COL "build-up" city like NYC is experiencing similar flight due particularly to high density. And SF is (or was) the second densest large city in the US.
Only in the context of SF is NYC (esp. Manhattan and parts of Brooklyn) a cheaper CoL city. (Though I think it does demonstrate that building up isn't some magical elixir for housing prices. See also e.g. Hong Kong.)