I don't know what's actually happening, but my interpretation of the cobra effect reference is that people are inventing new identities/affinities in order to be able to benefit from the systems which reward them.
i.e trying to diversify to discourage racism so you end up prefering minorities who are less fit for a job than just to be "diversified"