Does this apply to sports?
Yes.
As would be the case in an idealized Olympics (eg. equal training facilities even in tiny nations), you get a skewed result in medals based on physical traits which correlate strongly with athletic performance in any given sport (eg. only certain body types are optimal for distance running). A broad, diverse and inclusive selection of the world's population results in the best athletes winning (merit), provided the sample size is sufficient and enough trials are run, even if the end results are seemingly ironically skewed(!). This is naturally so, as body type impacts performance strongly, and sports favor rare physical extremes within those groups. (There is a question as to whether or not Olympic sports test all possible forms of physical prowess, meaning some excellence goes unrecognized, further skewing results toward only certain groups.)
This is why you need DEI programs, which, like an ideal Olympics, ensure the sample size is great enough such that merit wins the day, which owing to structural and cultural reasons, may otherwise be artificially restricted,
artificially skewing results.
How this works out when any given group is
not provided equal opportunity at early and successive developmental stages, especially over generations, is a matter of remedial policy...
in order to restore meritocracy. Huh? Why is this not a contradiction?
Successive denial of opportunity is self-reinforcing and self-perpetuating, particularly in shaping expectations, a powerful motivator affecting whether and how parents engage with the very young, in turn affecting learning and
effective IQ performance (acquired algorithms, Flynn effect). Remedial action is justified on the basis of the long term result, ie, a population which, after such redress, maximizes its natural talent and potential across the board, the now common and shared expectation being that hard work and talent are
fairly rewarded. Failure or lesser performance can be properly assigned to oneself, not circumstance. (ETA: Like the Olympics, economic life does not test all manner of human capacity, and therefore there can be much of great worth that is not valued.)
TL;DR: Affirmative action is a corrective measure to
restore normalcy over time to the general population, allowing better performance results, all else being equal. (May result in flurries and melting snowflakes, YMMV.)