Does it make sense to move (San Diego -> San Francisco)

Assuming that you have plenty of cash money it may be possible to prove financial independence for tuition purposes at UC. But just know that is rare and that you will have to appeal.

https://registrar.berkeley.edu/tuition-fees-residency/residency-tuition-purposes/in-state-tuition-undergraduates

OP-are you Asian or not?