Do you really, really think that a company will choose someone with lower qualifications for a job?
Are they that stupid?
It's not stupid. It's cost/benefit. Optics matter. You don't need everyone to be a rock star. If they're competent "enough" then there can absolutely be greater value to the company in picking an individual with great optics over one that will deliver that extra few % of oomph.