It should not be forgotten that Hitler and the Nazis were Socialists. However, they were not Marxists.
Hitler himself declared in 1920 when the NSDAP was founded: "Since we are socialists, we must necessarily also be antisemites because we want to fight against the very opposite: materialism and mammonism. And when today the Jew still runs into our factories and says: How can you be a socialist antisemite? Are not you ashamed? - there comes a time in which we will ask: How can you not be an antisemite, being a socialist! There comes a time when it will be obvious that socialism can only be carried out accompanied by nationalism and anti-Semitism."
Hitler and the Nazis hated Capitalists and Marxists. Hitler even intended to bomb New York City, the center of global Jewish capitalism, but this failed. What did not fail, however, was his war of annihilation against the Marxists, known as Operation Barbarossa. The Nazis were simultaneously at war against Capitalism (USA) and against Marxism (USSR).
So socialists who found a new scapegoat. Marxists aren't against singling out a troublesome minority opposing them (Kulaks, Colonialists), so they aren't that much different.
The only difference is that Nazis hate Jews for both socialistic (rich guy bad) and nationalistic (they are morally and culturally subversive) reasons. Although Marxists could also make the moral and cultural arguments against any minority opposing them, in this case the Jews really were pushing degeneracy and backstabbing the nation.