Just as it is not true that "of course majorities are able to do the job".
Just as it is not true that "of course minorities are not able to do the job".
Just as it is not true that "of course majorities are not able to do the job".
What minority/majority/gender or other group you belong to simply is not relevant.
For most highly skilled jobs, most people are not able to do the job, completely irrespective of which group they belong to otherwise ("otherwise" meaning: unless your grouping is "people who can do the job" and "people who can't do the job").
So the only or at least overriding criterion in hiring should (must?) be: can they do the job? (Do they have the skills, training, temperament, work ethic, etc.)
When reasonable people complain about DEI hires, what they are complaining about is "ability to do the job" not being the first, foremost and preferably only criterion used to select the hire. This is a reasonable complaint.
Of course there are also racist assholes, who complain about DEI hires because they believe a-priori that someone with a minority background can't do the job. That is to be condemned, obviously.