I self-studied from my alma mater's computer science program (fortunately, many of the resources were all online) and was able to pivot into a career in software development, but it was a colossal amount of work and energy. I may as well have just done the computer science degree originally. A lot of my peers who had studied physics/math also took the same route, transitioning into data science or software development.
As it turned out, I ended up with a job doing high-level tech support at a company selling measurement equipment to engineers, so they wanted people with a science/engineering background. I think physics is great to study, but more like another poster said, like studying classics if you want to write literature.