Like anything you can bend these stats anyway you want to IMO.
LA is definitely more pricey than SD for what you get.
But in LA city workers make probably close to twice what they do in SD, then you have the studios.
And the list goes on.
I would say for a software engineer or self-employed person SD is better than LA as far as what you could afford (I would add San Jose as well), anyway IMO.