I said "similar commands". Your Bible claims that God commanded the slaughter of many other babies and children. In order to maintain your "God is good" charade, you have to conjure up some means of determining that all of those infant deaths are 'good', all the while realising that you don't think they are!
This is debated in Christian circles as well, but there's some good evidence as to why God commanded Joshua to wipe out every man, woman, child, and all of their livestock during the conquest of Canaan. It is very controversial, and many Christians find a hard time swallowing it, even though if you look at the Hebrew texts, it appears to mean exactly what the controversial claims say it means.
It has to do with the corruption of man's bloodline by fallen angels. Basically, the third of the angels that rebelled along with Satan before Man was created were thrown out of Heaven. During the Pre-Flood days, some of them manifested in human bodies (like God's loyal angels do several times in the Bible) and saw "that the daughters of man were fair" and had children to them resulting in "mighty men of renown" (the "giants" that some translations speak of). Well, God wiped those out during the Flood.
However, there were still some of Satan's fallen angels left apparently, and this happened
again (but to lesser extent) in Canaan after Jacob's family went down to Egypt, during the ~430 years they were in Egypt.
God did not want this bloodline to survive whatsoever, so He commanded Joshua to wipe
everyone out, to the last child to get rid of this tainted, cursed bloodline. He didn't want any of their genetics to get passed on whatsoever. As for why kill the livestock too? Maybe they (the fallen angels) were fooling around mixbreeding the livestock too? I dunno. I don't underestimate the things Satan would do to destroy Mankind; that's all he wants to do is destroy everything God creates.
Like I said, this is a controversial thing even in Christianity and many refuse to even consider the idea that this is true... but it would explain why He would go to such lengths to wipe out the Canaanites.
Yes, I am sure many of us find ourselves in this conflicting situation. But most of us do something to remedy it!
See, the problem is... you don't actually believe in God. I can say this, because the way you speak about Him lacks the type of reverence that a believer would have. Or, if you DO believe in God, then you haven't fully grasped the concept of a Being who is capable of doing what He did (do you have any
idea how many stars (not counting planets!) that are in the galaxy, let alone all of the other galaxies as well?
You're going to go in front of this Being... who created everything... and tell Him that His version of "good" is wrong and that yours is right? Seriously? The One who could end you with the snap of His fingers (He wouldn't even have to do that), but hasn't yet because He's trying to give you all the chances in the world to realize your error and come back to Him?
Also, again... many non-believing people fail to realize the temporary nature of Life on Earth. Yes, a child is killed. That is never a good thing, unless God wills it, because God put that child on Earth for a reason and He could have easily prevented that child from being born if He so wished. But yet, if God wills or even allows that child's death, there could be an infinite number of reasons why that outcome is better than the child surviving. We just don't know that, because we aren't God, we can't see the whole picture like He does.
We are flawed, we can only apply our concept of Good to our very, very tiny limited range of understanding that is reliant upon what we've been taught (which could also be tainted). If your learning is tainted, or if your understanding of a given situation is limited... can you truly tell what "Good"
is rather than what it
appears to be?
God is Truth, He already knows the truth of everything. We can only make guesses based upon what we've been taught, and what we know of the situation (most times we don't know the whole story behind it, and we certainly don't know the future).