Pharaoh tries to kill all male babies - later Moses orders the very same thing!
To judge God or the Bible, one should know every aspect of the arguments one is purporting.
That used to be my idea too. However, because the Bible is supposed to be inspired by God Almighty, we can expect him to provide us with perfect and complete information. If it is not there, I have to draw my own conclusions. Otherwise I can believe in the Qor'aan or any other holy book. When one finds unlogical ideas, the uncomplete information is always an excuse for the believer.