You are defending a lost cause. God gave them orders on how to enslave people. That's not a moral god. God also commanded to kill someone because he was working on the Sabbath, that's not a moral and logical god, that's a barbaric god and just shows the mentality of the people who wrote the book.
You simply have your religion. Since you are unwilling to look at what the Bible says in its entirety, you have made a different kind of religion for yourself.
You will come to find out how majestic God is. I hope it is before your death, in ways that cause you to turn and accept Him. Because it won't be fun for you if you find out after your death.

The bible has literally pages of god commanding to kill people, what do you mean to look at its entirety? If it's truly the book of a god, you would expect it to have no mistakes. Or that people won't be able to misinterpret it.
You see, all that matters to god is for me to accept that he exists, he doesn't care whether I am a good person or not, it just shows how stupid he is lol
Before mankind sinned, there was no death. Mankind used his free will to bring on death.
Then mankind went on to use his free will to do all kinds of things that would further death.
If someone murders your daughter, you might have mercy on him, and not pronounce the death penalty on him. But if he is not in the least repentant, and doesn't care that he murdered your daughter, but goes out and kills your other daughter, just for the fun of it, and would go and kill many others any time he had the chance, are you still going to let him live?
Doesn't justice require execution for the murderer? Especially if the guy is an unrepentant homicidal maniac who enjoys killing?
That is the thing God is judging when he puts nations and people to death. It isn't the simple act of direct murder that He is judging. Rather, it is the activities of sin-without-repentance that He is judging. Sin without repentance is the intentionally bringing of death, just like the first sin brought death. God's judgment is accurate, as is His mercy towards many people who He gives a long time, and much more chance to repent... like you.
Like as nations often exercise the death penalty... for justice to be done... so God does the same. He is even more accurate in the justice. And, He is owner of all things. Don't tell Him what He can and can't do with His property. Rather, be glad that He gives you a time of joy for a while, so that you can repent, so that you will not be destroyed like others that God righteously executed.

''Before mankind sinned,'' God already knew that was going to happen, therefore there is no point in punishing humans for it.