There are two modes of identity politics.
One recognises diversity and embraces it, including "the others".
Another promotes distinction and faction, and turns these against one another.
As with much else, there's a good kind and a bad kind.
Fascism is the bad kind.