In some (very loose) sense, those two things are the same thing. It's not that these people say to themselves "man, I hate how I can't wear X shirt to work, better quit" but rather "the culture here (dress code, socialization patterns, etc) seems to default to white, and people view me as an outsider." I think that that's probably much more common than explicit disrespect.
They aren't the same thing. One is something that is done to you, the other is something you choose to do to yourself (or not, if you find it more useful).
My company is about 95% one race (not mine) and there is precisely 2 people here of my race (since last week) and 4 of my nationality. I simply choose not to care, and define my work tribe as "folks who care about uptime and good stats" rather than "folks who are genetically similar".