Like you I put these horrible things (god ordering genocide, killing of babies, death penalty etc) just aside. As I became a father I couldn't do that anymore. So I studied a lot about it and came to the conclusion that the bible is not infallible and that the god there is just the tribal god of Israel and not the real creator.
I cannot believe anymore in such a god, ordering the cruelest acts everyone would be appalled if they happened today. My conscience doesn't allow that. I believe in a creator who is not graspable with our mind, unimaginable powerful and wise, who brought all natural laws into existence (and also the miracle for live to evolve) and gave freedom for all his works.