It’s all groupthink, and groupthink is dangerous.
Worse is mandatory collective identity, you are not a person but only a member of X group.
It is an ideology that demands bigotry because it assigns people to various groups based on demographics and then, the true racism/sexism shows up with cultural appropriation, that you are bad for not adhering to the dress, behavior and attitudes approved for your group.