Out where the med school is at UCSF it is not congested. It is suburban city, with some apartments but mostly single family homes. You are a few blocks from Golden Gate Park. Yes California housing is expensive but LA may be worse or at least as bad as SF. And the hills are little hills, totally walkable. There are shuttles and mass transit to get between sites. I did residency there and it was awesome. And you are much better off with UCSF in terms of prestige and matching. Don’t hesitate.