Too often it is done for identity politics and coupled with a bad story. People would forgive the first more if it wasn't used to cover for the second.
WHAT IF I TOLD YOU; Complaining about gender/race/sexuality in casting choices or plot decisions from a conservative perspective is its own form of identity politics