Yes, exactly. The inconsistency is a consequence of the objective. Many people discriminate in order to gain or maintain personal power. Or to put it another way, in many situations it’s true that racist policies led to racist values, not the other way around.
Of course this situation is not only about racism. It’s about mixing together several different kinds of discrimination. But the same rules apply.