I don't think that your translation of "racism" is accurate. The word used in the hadith covers a much wider concept.