Detroit is almost exactly the same size as SF. Detroit has cheap housing AND STILL BUILDS MORE. SF has decided that NIMBYism is the solution to homelessness, and it's obviously not working.
Size as in geographic area or population? Detroit has blocks and blocks where only a single house exists, thousands of empty lots and abandoned homes. Easier to build when there’s cheap empty lots.