Attending a CSU for 4 years or 2 years at a cc and transfer to a UC?

Hey! So as im an international student i cant afford 4 years at a UC school and getting aid would be rather hard. What i can do though is attend a CSU like SDSU for 4 years or attend a CC like SBCC for 2 years and then transfer to a UC campus. Whats the best strategy you think? I dont care if a university like UCLA is more recognizable internationally, im here to stay hopefully. I know that getting a H1B atfter im done is hard but i will take the risk.

So whats the pros and cons to each strategy? The price is roughly the same.
I will major in computer science/engineering