I would argue those two areas are very different though. The Bay Area is not as dense or as many aggressive drivers as NYC.
LA also has far denser areas than SF, places like DTLA and Koreatown are more dense than most boroughs in NYC (sans Manhattan).
Hard to really compare a tiny piece of LA and say it’s more dense and compare it to borough that is in the same range but also magnitudes larger total pop.