There's nothing of that that would lead one to reasonable conclude slavery must be abolished or should be abolished.
It was the injustice of stealing people from their homes and forcing them to be a slave and then treating them unjustly and inhumanely that made slavery wrong.
Slavery still happens these days in similar ways and is wrong. Slavery also happens in other ways and we applaud it. We become slaves to our job because we need the money etc.
Over the years even this form of slavery has modified in the number of hours and conditions of work and employee rights etc but of course there are always those who push back against these laws.
Slavery is never appropriate or proper. Owning people is wrong no matter how you look at it or justify it.
In the context of the societies in the OT times it would have been another story and view but yes I would agree with you and ownership should not come into it. Legal contracts and responsibilities is what takes the place of ownership and our responsibilities for the welfare of our employees just as the OT laws had responsibilities for the welfare of the slaves,,,,,,,,,but certainly not as detailed as anything these days.
It is always not ideal when moral responsibilities to others needs to be made law, but that is the state of our moral advancement even if in general the Christian ethic of caring for all people has taken over societies in the world as a concept.
I didn't say wars aren't happening, but much of the world is having far fewer of them and so much of us are living longer because the chances of being killed in war or violence has never been lower.
If that is true it is good.
"Thou shalt have no other gods before me" throws freedom of religion out the window, and no one has really practiced that concept until over the past few hundred years or so (America was the first to put it in writing).
The context of that law "thou shall have no other gods..." is the Jewish law where the law giver was God, there was nothing in there to force those of other religions to become a Jew and there is nothing in Christianity which says to force everyone to believe in Jesus and punish them if they do not.
Thou shalt have no other gods does not throw freedom of religion out the window except it was important if you wanted this one God to be you God and if you wanted to be a Jew.
But of course the whole thing went haywire when people en masse and the Kings etc decided it was OK to worship other gods. God had to deal with that and He did by applying the punishments for such a thing, but God was always patient and slow to punish and there was always the plea to come back to Yahweh the God who had done so much for the Jews.