My limited experience is FOR KEY POSITIONS the standard of qualifications and job performance for ethnic minorities has to be off the charts above and beyond non-minorities to be evaluated as doing a good job whereas non-minorities have to do a good job but not perform at the same standards. My observation is this dual standard does not apply to "worker bee" positions, just key roles and often its just one minority who is allowed to advance to a key role seemingly in order to look inclusive/the guy is so freaking amazing its stupid not to put him in a key role.
For women often sadly being eye candy and flirty in a factor in advancing to a key role. Its not the only factor but my observation is its one factor.
Lastly, I don't think any of this is deliberately and intentional. I think we all have a mental picture of how a person we envision to fill a certain role to look. I think subconsciously gender and ethnicity plays a part in that mental picture with many people unless there is something that stands out in a powerful way. Being the hardest working, most talented worker and articulate person you've ever seen if that worker is an ethnic minority send that powerful message. Giving every man in the room whiplash every time you walk in the room and then being the sweetest most ego building person he's ever met provided you can also do the job also makes a powerful statement. However, being the subconscious "mental image" of how people in a key role should look is a huge advantage if tall, male, white, well dressed, etc. happens to be that image. I also think the more women and minorities are seen in society serving in key positions, they more the "default" mental image becomes more inclusive.