Should I attend SJSU or CC if I want to transfer to a UC

I decided not to dorm at SJSU my freshman year because of the cost and it’s only a 20 minute commute from my home