"Do you even believe all the parts that sound terrible are the word of God?
If this was the question then you chose a poor place to attack. You should have gone with something in Genesis, Exodus, Joshua, Judges, Samuel, Kings, or Chronicles.
For instance, to answer a common objection on this site, the passover. The passover isn't something that can be brushed off as not being meant to be real as it is fundamental to the Jews and for the Christians is a sign of Christ. It also involves killing of babies.
To understand how the passover was moral it is needed to establish a few things: First, God works according to laws so while he (possibly?) could teleport people out of Egypt that would violate the agency (or free will as it is called) of everyone involved.
Second, Everyone that is under the age of 8 is not accountable for their sins.
Third, God is a utilitarian with our eternal happiness as His primary goal. Our current discomfort if it leads to our eventual modifying of our actions or desires to match what will ultimately bring us the most happiness is acceptable to Him. This can be seen in such things as the Atonement.
So God was not only attempting to get his people free but to also provide an experience that the Jews would remember through all generations. Also he was trying to convince the Egyptians that their gods were not gods.
So everyone that he killed that was younger than 8 was automatically saved. Death happens to everyone so when we die isn't terribly important to God, our eternal happiness is his goal.
So if one was a member of the group that was killed by God that was over 8 then one would have some decent evidence that the Egyptian gods were not able to provide salvation and that possibly the Jewish God could, this would hopefully cause them to convert to following God. If one was an Egyptian that was not killed by God but saw that all the first born were killed then this would provide strong evidence that the Egyptian gods were not gods and that the Jewish one was, so when one died one would be more willing to accept God. If one was Jewish then one would have strong evidence that God was indeed God and hopefully be less likely to stop following God.
Hopefully you can see how from Gods perspective the passover was overall a worthwhile investment. The Jews commemorate the event to this day so they clearly haven't forgotten, which was one of the goals of God.
There may be more to the calculus of the passover from Gods perspective, not being God I can't say I have covered everything. If one wishes to know more then one is always free to ask God about the subject.
If this was the question then you chose a poor place to attack.
No, my original question was my question and made for the sake of personal interest and amusement.
Second, Everyone that is under the age of 8 is not accountable for their sins.
I know, that's why I make sure to kill everyone I meet at the age of seven years and six months. It's to save their eternal souls! Bite those bullets!
People who grow up believing certain things,
even if they later stop believing them,
may not quite realize how the beliefs sound to outsiders...
(SCENE: A small cottage in Nazareth.)
Joseph: Mary, my dearest fiancée, there's something I've been meaning to talk to you about.
(Mary's shoulders slump. Slowly, as if under a heavy burden, she turns around to face Joseph.)
Joseph: You seem to be getting fat around the waistline, and throwing up in the morning, and, er, not getting any periods. Which is odd, because it's sort of like -
Mary: Yes! I'm pregnant! All right? I'm PREGNANT!
Joseph: How is that possible?
(Mary's shoulders slump further.) Mary: How do you think?
Joseph: I don't know, that's why I'm asking you. I mean, you're still a virgin, right?
(Mary looks up cautiously, and sees Joseph's face looking blankly puzzled.)
Joseph: Well?
Mary: God did it.
Joseph: You had sex with -
Mary: No! Haha. Of course not. I mean, God just snapped his fingers and did one of those miracle things and made me pregnant.
Joseph: God made you pregnant.
Mary: (Starts to sweat.) Yes.
Joseph: Mary, that is just so... completely...
(Mary's eyes squeeze shut.)
Joseph: ...COOL!
(Mary opens her eyes again, cautiously.)
Mary: You think so?
Joseph: Of course! Who wouldn't think so? Come on, we've got to tell everyone the news!
Mary: Maybe we should keep this between just the two of us -
Joseph: No, no, silly girl, this is way too important! Come on!
(Joseph grabs Mary's wrist and drags her out of the house. SCENE: The gathering square of Nazareth. A dozen well-dressed men, and the town's head rabbi, look on Joseph and Mary impatiently.)
Rabbi: What's this all about, Joseph? I trust there's a good reason for the fuss?
Joseph: Go ahead, Mary! Tell them what you told me.
Mary: Um... (She swallows.) God made me pregnant.
Rabbi, looking stern, yet understanding: Now, Joseph, you know you're not supposed to do that before -
Joseph: No, no, you don't get it! She's still a virgin! God made her pregnant directly!
(There's a long pause.)
Man #1: So, what you're saying here, basically, is that Mary tells you she's a virgin.
Joseph: Uh huh!
Man #2: And you haven't had sex with her.
Joseph: Uh huh!
Man #3: And now she's pregnant.
Joseph: Precisely!
Man #4: So you think that God did it.
Joseph: What other explanation could there be?
Rabbi: Joseph, that is just so... unbelievably...
(Mary holds her breath.)
Rabbi: NEAT!
(Mary exhales.)
Man #5: A miracle! A miracle right here in Nazareth!
Man #6: Wow! I thought that miracles only happened in Jerusalem!
Man #7: Come on! Let's spread the good news!
(They depart. SCENE: Mary is alone with her friend, Betty, in Betty's house.)
Betty: "God did it."
Mary: I panicked! It was all I could think of!
Betty: So who's the real -
(Mary lifts an eyebrow significantly. There's a brief pause.)
Betty: Ah. So that's why the rabbi went along with it.
Mary: Well, he thinks he's the father, anyway. Why, does it matter?
Betty: It puts some things in a different light.
Mary: Like what?
Betty: The rabbi has been telling all the pretty young girls that you, Mary, are the ultimate embodiment of feminine virtue, and when they grow up, they should be just like you -
Mary: I just feel so awful about the whole mess. What kind of thing is this to have hanging over my child's life?
Betty: You've got to put things in perspective, dearie. You told one little white lie. It's not as if you caused the fall of the Roman Empire.
Mary: But what if the Romans hear about it? I don't want my baby to end up being crucified!
Betty: No one's going to obsess about it that long. In a couple of months this whole thing will blow over.
Mary: I hope you're right...
(Exeunt Omnes.)