What affirmative action is supposed to do is to ensure that your race isn't a determining factor in not getting hired for a job that you are qualified for.
The Rooney Rule in the NFL wouldn't need to be a thing if being a black coach in the NFL meant statistically you had a greater chance of getting fired or not being hired at all https://en.wikipedia.org/wiki/Rooney_Rule