“Infants can be born contaminated that they must be put to death by the hands of men?”
If you are to believe the lesson was one of obedience then yes who knows Gods intent?
Were they or were they not told to kill everything and take nothing?
So if your god revealed itself to you personally, and asks you to kill your friend’s child by crushing its skull as a test of obedience, I take it that you will have no qualms in carrying the order out? Answer honestly.