You should have stopped to think about why such a person was hired in the first place, while there are an endless supply of very talented, hard working, and honest young people who would never be given a chance at all.
But if I guess right, hiring is not seen as the responsibility of your company. And that's the core of the problem.
The people who will give you credit where it's due and lift you in my experience are more rare than not, and almost always an older member, which perhaps is because they don't feel the need to prove themselves as much anymore.
Despising older folks has been a thing a long time, made famous by Zuck starting out. Now that he's older, I wonder if he still feels the same way...
and before that is was hippies with "Don't trust anyone over 30" which became deeply ingrained in at least American culture.