I started university in 1967, intending to study physics. Unfortunately, Physics was at 0830, and I soon discovered that I liked physics, but not enough to get to campus reliably at that time. Fortunately, Computer Science was at 1630. My academic career was thus determined.
Well I think undergrad just stamps a label in your forehead. What you do in your free time, most important, what job you get and who seriously you jump into it is what determines your value to society.
Carsten Dominik, another physicist, was the creator of org-mode. I don't think physicist have an advantage over CS graduates, in fact reading code written by physicists is like watching and horror movie. But everyone can contribute a tiny bit.
You are right, a lot of my friends, who studied physics, take the jobs CS undergrads don't want to do, and get really low salaries...