Stanford unless you’re working directly with underserved is a big factor for you, you need to live in a city, or you don’t like the culture (UCSF seems big on equity and clinical excellence, Stanford on doing things besides residency)
Congrats on such incredible schools - you genuinely can't go wrong!! I think that Stanford has the edge on creating the "doctors AND..." physician, but both options are fantastic