You're strawmanning my argument. I never said anything about human nature. I said that tribalism, as a psychological principle, is inherent to humanity.
Here is an article which details some studies supporting this concept from a pop-sci website:
https://www.psychologytoday.com/us/blog/brain-reboot/202307/the-neuroscience-of-tribalism
Also, for somebody apparently on the side of historical evidence you seem to be ignoring the mountains of genocides and racially-based conflicts throughout our species' history.
I'm not saying racism is good. I'm saying that every time we see fascists come to power they have roughly a third of the population that supports them... is that just a coincidence or could there be a reason that the data is the same every time? I posit the reason that the data is the same every time is due, at least in large part, to human psychology.
Besides that, let's take this outside the concept of liberalism and capitalism, as race-based conflicts and genocides have occurred long before the creation of capitalist or liberal systems, which are truly an advent of the modern era.