What a weird and deshumanizing thing to say. Slaves are definitely people, a machine definitely isn't.
Moreover, slaves aren't productive over the medium/long term. You don't get useful and lengthy performance from raw coercion, the same way you don't get truthful and actionable intelligence from torturing prisoners.
So no, an LLM has very little in common with a slave.