I made this exact mistake at 17/18 and even had a very similar line of thinking as OP, but my decision was not to go to school at all.
I ended up in the industry a few years later, but have had a mostly crippled career. It was unfortunately drilled in my head around the time that people were handing out six figure salaries to anyone who could remotely program regardless of education.