You are onto something but I would suggest a slightly different conclusion: that the best and brightest STEM students are attracted to the shiniest jobs, which right now involve programming computers to trade money (HFT) and teaching computers to do advertising (ML-backed ads). Neither of those are fundamentally useful.