People who want to censor Twain misunderstand his message, either out of ignorance, or purposefully so as to take the sting out of Twain's social commentary and rewrite history.
Perhaps you can think of some works of literature set in India where characters utter analogous slurs, and the purpose of the author is to criticize the caste system?
https://medium.com/luminasticity/mark-twain-racism-2-tom-saw...