In terms of density, San Diego is like a stretched out San Francisco. The best places to live are along the coastline and an ocean view is very expensive. My tiny condo, with a view, has a higher cost per sq. foot than $3m victorians in San Francisco.
But you're right, at this point, I'd still rather be in SD than SF.