I’d add a little color on the UC Transfer Admission Guarantee. UCLA, UCSD and UCB don’t participate. The other 6 exclude certain popular majors, and the list of excluded majors can grow while you are at the CC working on transferring. There is also a GPA threshold you need to meet and specific classes you have to take that can change on you too. Right now, the GPA threshold for History at Davis is 3.2 - which you may find hard to achieve at the college level.
Given your options today, I’d spend a few hours at CSUSB and see how you like it. If you can see yourself spending 4 years there, If so, then really commit and get involved. Transferring may still be an option but, don’t consider SB a anything less than a permanent stop. If you can’t do that a CC (and the downside spelled out by @mikemac ) is probably your best course.
good luck.