When I first came out as atheist, I started a thread you can probably still find here called "Are you more moral than Yahweh?" It took a look at a number of questionable OT positions (and I think one or two NT, but mostly OT) that are inconsistent with a God who is the author of morality. But if you are to take the position that morality is objective (spoiler alert, it's not) and that certain moral standards are absolute (like rape among humans is always wrong and the victim is the person who was raped), then you have to conclude that the God of the Old Testament is frankly not moral.
Is it moral to prescribe the death penalty for picking up sticks between dusk Friday and dusk Saturday? No. Of course not. But Yahweh (allegedly) did that. It's sociopathic! "But it was another time." SO WHAT!?!?!
So what you're describing here is a clash between what the Bible actually says about Yahweh (and by extension Jesus) and your own understanding of what actual morality is. And then you have to defend your own morality against the (absolutely and demonstrably false) premise that there is no such thing as morality without Yahweh because he is where we get morality from. HE MOST CERTAINLY IS NOT.
Morality does not come from religion. Religion comes from morality. And it is not "objective," which is why our culture rejects a slew of Old Testament pronouncements as immoral. We may have once thought, incorrectly, that eating shellfish or mixing fabrics was immoral. We know better today.