What would be the better option: go to community college for 2 years and save money and transfer to a state college or just go to state college for 4 years and build connections?

Pros and cons for each?