Upvoted for general agreement and replying to note that this depends on what you are going to your university for. If going to the university is mainly for attending classes and obtaining a college diploma above a floor value of respectability, going to the least expensive college that offers courses toward your major can be a great idea. My childhood best friend, a smart boy from a working-class family, did two years of prerequisites to an electrical engineering degree at a local community college before transferring to the state university to finish his degree. He said he had more personal attention from his calculus and physics professors at the community college than he likely would have had at the university. He also met a start girl who is now his wife of thirty years at the community college. So all around that was a good idea for him.
But if the university offers sufficiently strong networking advantages, and connections with really influential people in your hoped-for occupation, it may be a good idea to go to the university from the beginning, even at greater out of pocket cost. There may be a rationale for choosing a top-however-many nationally known university over one's own state colleges and universities if that university's reputation has economic value for job-seekers, as perhaps it does.