Words that have power:
Nigger as a racial discrimination slur, chink, tojo, gook so on.
And as far as focusing on the n-word, it depends on how the tone was when you saying it. The slur, could be friendly.
But anyway, it has been to the nowadays state where you can’t say it anyway unless you are a black.
In China, there are also slurs like this to discriminate different kinds.
In Guangdong, there’s an amount of locals despise those come from outside of the province. Lānlóu, lan佬, is the racial slur for the working force people coming from outside and seeking a better life here.