Davis has a train that comes straight into town that takes you to SF or Sacramento. Or, you can train into LA, if you decide to go with UCSD.
As locals, our children’s preference was not UCSD. Our daughter loved, loved, loved Davis!
Housing is already through the roof in SD County, but is even MORE incredibly expensive in the La Jolla area. I’ll send you a PM.