Capitalism is not inherently racist either
I would disagree with you here. Capitalism is not an abstract ideal. Neither is racism. They are both specific historical processes. Historians generally seat the origins of capitalism in the invention of common stock in 1602 by the Dutch East India Company. Historians also seat the origins of the racism to the mid-1400s in Portugal when Prince Henry sponsored mass slave catching in Africa and commissioned the author Gomes Eanes de Zurara to write a positive account of his exploits. This writing, "The Chronicle of the Discovery and Conquest of Guinea", established a moral basis for violent human trafficking, subjugation, and mass theft.
By the time the Dutch East India Company invented common stock, what investors were investing in for the initial IPO was the massive expansion of a private militarized merchant company that had racialized human trafficking and slavery as a core pillar of the company's operations and profit.
There was literally never a time in human history that capitalism existed separately from racism. Capitalism was built on the foundations of racism and integrated all aspects of racism into its mechanics.
In an academic setting of pure abstract theory you could potentially invent a theoretical form of capitalism that isn't racist, which could be useful for thought experiments or maybe some creative fiction. But Capitalism as you and I know it has always been fundamentally enmeshed with racism as we know it.