Earlier quoted context omitted.
I don't see it. I think you may be projecting your own interpretation on to the parent comment.
Okay I'm going to spell out a major factor then. What this poster was implying that they are against immigrants because they believe immigrants are inherently prone to corruption based on their country of origin. This ignores centuries of confounding factors such as possible imperial rule, internal resources collapse, or failed economic experiments and makes it purely about nationality. Somewhat importantly, op only…
> "Why some places are corrupt and others aren't is poorly understood magic of some sort. One fairly decent guess is something like "cultural factors" - Danish bureaucrats aren't corrupt because they expect that other non-corrupt Danes would punish them for it."
How did you make the leap from 'cultural factors' to "immigrants are inherently prone to corruption based on their country of origin."?
There is nothing about inherent inclinations. The point - one I have firsthand experience with - is that the institutions the West have ("they expect that other non-corrupt Danes would punish them for it") are lacking in many parts of the world.The reason for this are complex - something the OP alludes to - but culture definitely plays a part.
Why my taxi driver gets hustled for bribes at gunpoint when in Nigeria but not in Laos, or why a lost wallet was handed in at a Kyoto train station but not in my hometown is more a matter of culture than of chance.
We can have that discussion without crying racist.