Martists also often think that marx would have some serious problem with bigotry or racism and this is why he opposed nationalism.
That is not the case.
indeed marx himself was extremely bigoted. He was rather infamous for using racial slurs as a way to critique his opponents etc. And he had no interest in trying to utilize the resentment of black people (members of what marxists call the 'lumpenproletariat') because he felt they were too dim witted to actually be useful or to properly understand the revolutionary idea of Marxism.
What marx WOULD say, however, is that the bourgoise often use nationalism to divide workers against each other in a sort of divide and conquer tactic. And since he regarded wealth distribution to be the only thing that matters, he felt nationalism was a fake identity (something I regard as rather absurd. What could possibly be more authentic to your identity than your ancestors, your blood, your actual DNA?). Fascists would agree that oligarchs will use nationalism to divide people...but the reason they do it is because it works...because a racial and ethnic identity is so important. So the only solution would be to give the various ethnic groups a distinct space of their own...so that you cannot pit them against eachother outside of warfare between countries.