You see things through your own lens, like we all do. So if that is the case, whose lens is the correct one....obviously, the one that allows clear crisp vision? There are so many things, both internal and external, that can cloud it. The heart will have its way. (Jeremiah 17:9)
It is said in scripture that God has foreknowledge of things that have not yet happened.....he can see the future...something that was not granted to humans. It's why we are encouraged to obey the one who has the kind of vision that we do not have.
God could already see what kind of people those children would grow up to be in that environment. The creator of justice does not then become a hypocrite. No one loses their life in this world who does not deserve to....but, what constitutes "deserving" is not our decision to make.
The other side of that coin however, is God's promise to restore the lives of those, who by circumstances beyond their control, did not have an opportunity to be the kind of people who could become acceptable to God under different circumstances. I believe that God will provide those circumstances in the future. The extreme conditions under which both Noah and Lot survived a divine judgment, creates precedents for us. Does God provide the way out of another judgment event that is to come, according to scripture? (Matthew 24:21-22) The "tribulation" that is coming has no precedent.
But God tells us how to save ourselves. It requires a positive response to a message that is preached all over the world. The good news is about how God's kingdom will end failed human rulership and replace it. (Matthew 12:14; Daniel 2:44)
As I said, God knows what is in the hearts of all. There are no humans on earth whom the Father does not know and cannot evaluate their potential to become useful citizens of his incoming kingdom.
Jesus already foretold that in this time of the end, "few" would actually prove to be the kind of people that God is looking for. They will take the easy road because a 'cramped and narrow road' does not suit them. (Matthew 7:13-14) Selfishness drives human behavior. Christ taught selflessness....opposites.
Acts of the Apostles 10:34-35 says that
"...God is not partial, 35 but in every nation the man who fears him and does what is right is acceptable to him."
So, no matter what nation or religious system a person may have been raised in, God will know who has the potential to be a good and obedient citizen of his Kingdom, and provide them with the means to get to know his truth. (John 6:44; 65) They will then decide for themselves, what to do about that knowledge. But I assure you, that those who are "drawn" by God will have a hard time rejecting him. Seeing he truth is like opening a door to the most amazing future that one could ever contemplate, whilst at the same time explaining why we are going through the trials of this life. But this truth is withheld from those who have no love for God and no intention to follow his rules. They are permitted to keep their own ill informed delusions. (2 Thessalonians 2:9-12)
Understanding the way God works to select the citizens of his kingdom to come, explains everything.The one thing that God has demanded from his worshippers right from the beginning is obedience. Very few are inclined to give him that consistently, justifying all manner of exemptions to suit what they want to believe. Obedience is not just about the easy things....the hard things need to be observed too. This is what separates the sheep from the goats.
What is muddled is the thinking of people who do not know God and therefore do not respect him or his way of dealing with and accepting the challenge to his sovereignty that occurred in Eden.
If people want to judge the judge, based on their own faulty reasoning, then they will fare badly I'm afraid....they can try, but it won't get them very far.