"Slavery was about racism and power and control" is very much not universal. Slavery existed (at varying scales) around the entire world for much of human history for a variety of things. Sometimes, as in US history, there was typically a racial difference between owners and slaves, other times it was a difference of conquered and conquering peoples, and other times it didn't have anything to do with race at all.
Race might be a decent analogue to the difference between human actors and sentient AI, but I suspect work animals (plow horses, etc) would be a better analogy.