We’ll always be tribal, it’s hard-wired into our brains.
And must therefor be, the natural order of things.
All creatures of the animal kingdom have the survival mechanism to discriminate. The young of the animal kingdom know who is their protective parent. Any other is a threat. This ability to know who is their parent is so precise, they know which one is their parent even though they have an identical appearance, like the penguin.
I remember, as a young child, that I had a mortal fear of anyone who did not look like my parents. This fear was not taught, it was automatic. We have fears of many things that are not taught. Spiders, heights, the dark and that monster under my bed. Charging one of racism is criticizing them of being human. Teaching one that there is nothing to fear is the civilized way to deal with it.