Choosing a black over a better-qualified white is still racial preference, even if they both are qualified in the absolute sense.
Picking someone just because they are black is still racism.