Except for gates communities, living cost is mostly a function of closeness to high paying jobs.

I don't think that counters what I wrote? One of the benefits of higher density is having more high paying jobs nearby.