The term “racism” was invented by communists. Leon Trotsky was one of the first to use it. When whites engage in favoritism toward other whites (and therefore discrimination against non-whites), its called racism. When other groups engage in favoritism, its called ethnic solidarity. When you buy into these word games, its called being a useful idiot.
In high school, my sociology teacher introduced us to the term “ethnocentrism”, defined as the near-universal tendency among people to favour those who share similar traits such as race, culture, and nationality. It is neither good nor bad; it just is.