Nazi Germany had a formula for being rid of the burdens and enemies of the nation of a United Germany.
Anyone perceived as not being fit to support Germany or was against the nationalist interests was deemed something to destroy.
Pit pockets to pimps, communists to Germanic hedonists were enemies of the state.
Hitler believed the Jewish people were incapable of national loyalty. He claimed it was against their cultural nature to follow a higher principle of altruism for its own sake. The claim was that Jews only work together for selfish self-interest to share common rewards. They were about a quarter of the number of non-combatants that were killed by the Nazis. The Romanis lost the greatest percentage of their total population.
Perhaps WW2 was the evilest period of human history and it was within a lifetime from today.
Fascist Nazis remain in abundance in various forms and are a dimension of the political arena worldwide under many guises.
Having a government and state fully supporting and condemning various ethnic/religious groups is very common.