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

Agree - CPSLO is really unlikely.

Here’s the freshman profile
https://admissions.calpoly.edu/prospective/profile.html

apply broadly.