The rhetoric on this topic has become so inflamed that few people are thinking straight. In that context, we need some simple models to understand the pathologies of various proposals. Consider a system where only one skill matters and it can be reliably measured. But that skill has contributions from innate ability and from development during upbringing and training. At a point of selection (college admission or hiring decision etc) the simplest option is to simply measure current skill and select the best. But that misses some with high innate ability who have had inferior training. If you care most about immediate performance, the simple skill based cutoff is still the best option. But if you want to select for only innate ability, you can can condition measured skill on various metrics of training and upbringing. Applying preferential selection (think affirmative action) based on all significant conditions can fully correct (on average) the outcomes and produce rankings that capture the top of the innate ability distribution. But there is an ugly side of this outcome. You now have a cohort in which present skill is correlated with upbringing and certain upbringings are strong evidence of inferior present skill.
One deep problem is that in certain contexts, it really is present skill that matters. Many comments address surgeon or research scientist. It really doesn't matter what your innate ability is on the team developing the COVID vaccination if it is going to take you a decade of training to develop the expertise needed to do a job. In other contexts, like university admissions, it is easier to argue that innate ability is the key factor and we can tolerate differences of skill correlated with upbringing in order to allow those with weaker upbringings to join the community and reach their potential. But note that in hiring after university, it becomes much harder to justify preferential selection for people who are being hired to do a job.
And that takes us to a core of the problem which is the radicals who think 'meritocracy' is the problem and that we must stop measuring skill and ability and celebrate everyone. The only context in which that makes any sense to me is if the task to be done really doesn't matter. For any task that matters, selection of people who are best at it will always produce such superior results that any society that abandons this basic form of meritocracy will simply lose the competition for survival. There are many problems with the current system of measuring merit because there are an enormous number of dimensions of merit and because each of these is difficult to measure. Add in the nasty history of racism and colonialism using meritocratic rhetoric to sustain their unjust systems, and we are in a tough situation. But the only option is to rebuild selection systems that can be trusted to place talented and well trained people in the right positions.