I've been a minority almost my entire life. Most of the issues with being a minority are not really present on software engineering teams. The demographics are too widespread.
There is no in-group. I would estimate 50-60% of software engineers are immigrants. That group is further segmented by country of origin. Everyone is different from each other.
Country of origin transcends both gender and race in terms of shared experiences and commonalities. American born people of all races and gender are more likely to befriend each other than to befriend a person who speaks broken English.
This diversity on software engineering teams minimizes the effects of being different because everyone is different from each other.
Software engineers also tend to be more introverted and immigrants are more polite (due to unfamiliarity with American culture).
For people to make inflammatory comments and get away with it, they need to have allies and be part of an in-group. These prerequisites are much more difficult to fulfill as a software engineer.
Software engineering is one of the best professions to be a minority in.