It's more complicated, and a deeper problem than that.
For example, I'm one of those former psych majors, and though those majors are full of people who aren't good at math, there's also a lot of them who know more computer science and math than some of the comp sci majors I've worked with. In fact, a common problem for psych majors and other students is to take the first couple of psych courses, think it's a breeze, and then hit advanced courses with cognitive modeling, neuroscience, epidemiology, and genetics, and realize it is basically STEM.
The problem with this is that everyone who took those first couple of classes, or didn't, has this stereotype of psych as all involving people laying around on couches discussing past lives or something. So you might have a psych major who did a thesis involving neural network models and cognition, maybe with some imaging involving a cutting edge system in the imaging center, working with physicists, and they will get looked down on by employers. Meanwhile the comp sci undergrad who barely gets python and did their group final project on some kind of toy webapp is qualified.
I have family who are making significant money in web development who are actually English majors, who just happened to have the right connections at the right time. When I was in undergrad, comp sci was filled with a glut of unmotivated students who just wanted a degree for a job, and we were all being told that there wasn't going to be demand for comp sci degrees because there would be too many grads in it and you could always learn that stuff through different means. My father, who is now in medical administration with an MD, talked me out of biochem and biology degrees because he couldn't find employment with those degrees and had to go on to grad school.
So what do we make of a degree? Does my dad's biochem degree suddenly become more valuable when it's a stepping stone to an MD program? Did that family member with a "worthless" liberal arts degree waste their money when they're making a comfortable income in the tech sector?
The deeper problem is that people are seen one-dimensionally, as equal to some degree, rather than their experiences, like college is some glorified vocational certification program.
Whenever we talk about "worthwhile" versus "worthless" degrees at some level what we're accepting is this idea that someone's skillset is defined by the degree, rather than the degree being an indicator of part of a skillset.
Society used to see things in the latter way, and at some point it transitioned to the former.