Actually it's a bit worse, in the sense that if you exhibit competence without the "appropriate pedigree" all you'll get is punishment.
Obviously one can find discrimination anywhere, but I don't think it's as systematic as you seem to imply. Most academics are under considerable pressure to publish or generate results, so e.g. when faced with hiring a postdoc or a PhD candidate, they don't have the luxury of rejecting a brilliant candidate that could be productive for spurious reasons.
So you did get it.
Just another note.
If you had the wrong facial bone structure, or some kind of deformity (before starting, not after like Hawking before anyone makes the point), or you were ridiculously short, or your voice had the wrong pitch, or a myriad of other traits, then that starting academic "pedigree" wouldn't have happened.
If you, by any chance worked in a field where you can work on your own and actually achieve something alone (you don't), had you achieved some great result you would have at best been ignored, but usually ridiculed.
If you insisted, the punishment would just get more and more vicious, but usually ignoring is enough.
It's the Matthew principle:
> For unto every one that hath shall be given, and he shall have abundance: but from him that hath not shall be taken away even that which he hath.
This is ingrained in human psychology innately (like the just world fallacy and other delusions) and there is no way around it.
I can think of at least 3-4 very highly respected faculty at top institutions who are short guys. Several more whose voice would never make it in a TV or radio career.
And that’s just in CS systems and security.
The physical stats will give you a masters degree, looking it up after gets you the PhD.
You want to look dominant enough with gravitas
Without that any competence elicits a tremendous response from other people that can easily go all the way to murderous violence.
In a sense, they feel that you are undeserving and that your competence is an affront to the "natural order". And this is in areas where there is some objective metric, which is not the norm.
These are very old biological truths and they will never change at the human timescale, if ever.