Why do you think diversity is just as likely to breed discrimination than an homogenous group?
People not getting along on a personal level is definitely different than marginalization/discrimination patterns.
If the team is more diverse, someone is more likely to point out when discrimination/prejudice is involved, as there is a higher chance someone will be sensible to the specific type of discrimination involved. Nobody can have a universal perspective on things, and someone from a different background might percieve something you will be unaware of.
Actually, the discussion around nurses/teachers being overly female and how it impacts the salaries in the field is widely discussed in sociology and feminist theory.
The idea that professions dedicated to "care" (healthcare, childcare, or even human ressources which demand "people skills") are overwhelmingly female and underrated is a staple of a lot of conversations around gender, workforce and income gaps between men and women.
If the team is more diverse, someone is more likely to point out when discrimination/prejudice is involved, as there is a higher chance someone will be sensible to the specific type of discrimination involved. Nobody can have a universal perspective on things, and someone from a different background might percieve something you will be unaware of.