Does that salary include the housing stipend? AFAIK, UCSF residents get a decent stipend to use for housing expenses, on top of their normal salary. May not be enough to swing the balance either way, but it's worth knowing about...
https://medicine.ucsf.edu/education/residency/application/co...
For a reasonable place in a good location, you'll end up at about $3000/month (there's a 1 bdrm at 246 2nd St). That's definitely expensive compared to nationwide averages, but you won't need a car if you both work in the city. As another poster mentioned, UCSF at Mission Bay (and elsewhere actually) has lots of purpose built housing at below market rates. Contact them!