To be fair, the Racism / Xenophobia component is always alive. AFD does exist in Germany, and Trump can get away with saying 'poisoning the blood' (He later said he didn't copy it from Hitler but he didn't apologize)
As I understand it, Racism was a strong motivator in the propaganda. It was part of Hitler's narrative even before he was in power (something something culture destroyers something something parasites lorem ipsum)
Only recently have I noticed that some groups support a Theory that downplays racism because people are obediently blind. I have seen racism and xenophobia and know it is neither obedience nor blind. But as to the extend of the power it held in the Germany of 1930, I have only read about it.
I think it's far more complicated than "racism / xenophobia".
Hitler had delusions about "Aryan" race, white blond people, even though he was not blond. Also, the war was mostly fought in Europe (or at least started in), i.e. mostly among people of the same race.
It couldn't have been "xenophobia" either, given he wasn't even German!
A lot of people who were sent to the concentration camps, besides Jews, were Roma (Gypsies), gays [1], Slavic people, probably more.
I havne't studied history that deeply, maybe this talk about "undesirables" was all just propaganda, conveniently constructed to help fulfill military goals, but it's clearly far from neatly fitting "racism / xenophobia".
The genocide was not the war. It was a "police" operation against a nearly entirely unarmed enemy.
The war was to to stop Germany from expanding past its borders, and also maybe to stop the genocide.