UW is MUCH better at research than UCD. It's not even close. We just built a billion dollar research facility next to our med school. USNWR ranks NIH funding. UW has a gigantic research endowment and billions of dollars in private research funding, it's the cradle and center of embyronic stem cell research in the US. We also have enormous funding for students doing research. Last year over 100 students received $6000 to do summer research here. UW is a world-class research institution and we take it very seriously. One of the people I work with closely is a leading candidate to receive a Nobel Prize (one of the developers of angiography and radial MRI). It's not uncommon to work with faculty like this as a med student and be given the autonomy to run your own projects with research technicians and graduate students reporting directly to you.
That being said, all of this is less important if you're not really interested in academic medicine. For primary care, though, it'd be hard to beat the environment you'd be in here. UW has programs in place where you can do a rural primary care experience with a preceptor for 6 weeks and see your own patients, and manage their care from intake to discharge, with minimal involvement from your preceptor. You can rotate at different state-wide sites that can give you an urban experience (Milwaukee) or smaller town experiences at various other places.
In the end, IMO, the OP needs to weigh how much they want to stay in CA and how much they like each school. In the end, I don't think you could go wrong either way. Don't get me wrong, I really like UCD, and wouldn't hesitate to recommend someone go there.
As far as why I chose UW, I ended up going here over programs like Yale, Stanford, UCLA, etc, more for personal reasons than anything else, my parents live here, I lived in CA for 6 years, so I had dual state residency when I applied. Getting a full-ride here didn't hurt either in my decision making process.