I've found this statement to be false, at least at my alma mater(UT Austin). My Honors OS class unquestionably made me a better programmer, teaching me about how programs I wrote interacted with the OS to a very deep level. My algorithms class gave me an extremely deep understanding of how algorithms+data structures worked, giving me a better intuition as to what tools to use when confronted with a problem. My HCI class made me acutely aware of how users interact with software.
I'll agree that the purpose of universities is not vocational. Without a doubt, a lot of classes I've taken will have absolutely no impact on my career (unless Buddhist Art becomes an in-demand field!). But a good school gives students the opportunity to gain applicable skills that are needed in the world.
If someone got an 'A' in UT Austin's honors OS class, I wouldn't even hesitate to interview them. It's a very good proxy for a good programmer. You can't do well in the class unless you truly understand code. Using a coarse grained filter of "Harvard University" is bad, but using a "Passed CS50 with an 'A'" filter is a very good metric to use.