Is it easier to get into UCSD and UCD undeclared and then switch into CS if accepted?

Your UC GPA given your test score won’t get you into the top 6 UCs or CPSLO. SJSU has a good CS program but your CSU index probably will be low there too unless you’re in Santa Clara County. Your best bet is the lower UCs or other CSUs.