The primary stated goal of NASA's Artemis program for several years was to land the first woman and person of color on the moon. It was emphasized repeatedly, trumpeted, and openly stated on NASA's website for years (before it was taken down in March 2025).
While I certainly understand your attempt to strawman the point, this doesn't logically mean the woman and person of color on the crew are necessarily unqualified.
What it does suggest to anyone who isn't crying racism/sexism on a daily basis, is that given equivalent qualifications, these individuals - to fill the stated goal of the program - would have been preferentially picked over other candidates afflicted with the regrettable conditions of whiteness and/or maleness.
IF NASA would have gone so far as to pick someone to fill those gendered- and ethnically-preferred roles over someone more qualified, I can't say. (Then again, we have KBJ as Supreme Court so anything's possible.)