Oddly enough I kinda bet on the wrong side of that, long ago. I graduated from high school in 1982. I had learned to program, and my mom was teaching intro CS at a nearby community college. She actually thought that math was too easy to spend 4 years in college learning it, and her students were getting jobs after a year of training in her course. So I majored in math, and added physics because the added course requirements for double major were minimal. Meanwhile, I continued to learn programming and electronics on my own.
A second issue (note the time period) was that I saw what the CS students were learning, and I also had a summer internship in a computer facility, and I formed the impression that over the long haul, a programming job would be rather dull. The people who were doing things with computers that seemed "cool" to me, were in the math and physics departments. That included the use of microcomputers rather than mainframes.
I've certainly done a lot of programming throughout my career, but have not been employed as a programmer per se. Most physicists program, because it's our most efficient and flexible problem solving tool.
I could probably claim to be a "data scientist" right now, if push came to shove, but am in fact working through some training on that and machine learning, to fill in gaps and make me conversant in the terminology. It could propel my next career move, or at least serve as a bit of career insurance.
Will add more in a bit, but mainly data scientist in Big Tech and Finance. At the right firms/teams your salary will grow much faster than linear in time