Let's say that as central Europe gets more antisemetic in the 1930s, the USSR also becomes deeply racist. The leadership accepts the basic tenets of the Nazis racial darwinism, just deciding that the Slavic peoples of Europe should be on top.
By 1941, the USSR and Nazi Germany decide that it is time to start their own Holocausts independently of each other. Their targets are virtually identical, swapping slavs for Germanic people, but both putting Jews at the bottom. They even have death camps and everything.
All else being equal, Nazi Germany still invades the USSR for living space.
How would the Allies react? In their views, two Nazi countries, one brown and one red, have invaded multiple countries, are openly antisemetic, publicly despise capitalism, and are now fighting each other for domination of Europe.
For a moment, imagine the war happening a bit like this: you'd see Germans breaking through to see minorities, Jews in particular, being gassed and killed, and publicising this to the allies and neutral nations. Whilst they personally don't give a shit about this, they broadcast it as the bolshevik brutality of the Russians. At the same time, you'd also see Soviets doing exactly the same whenever they advance across the front, broadcasting the Fascist tyranny of the Germans.
It would be difficult for countries like Britain to argue for allying with the Soviets who are unapologetically as racist as the Fascists whilst arguing that they are defending democracy.
Finally, lets say that the Soviets completely supported the fight against the West by the Germans, even sending their soldiers to fight in the battles of Britain and France in 1939 and 1940