You shall not bow down to them or worship them; for I, the Lord your God, am a jealous God, punishing the children for the sin of the parents to the third and fourth generation of those who hate me
Here god specifically says that he will “punish the children for the sin of the parents”. If any modern law were to legalize this belief there would be mass protests! You cannot ethically punish someone for another persons crimes, even if they are related. But this is central to christian belief as they need Jesus sacrifice to be payment for their sins.
Even the bible agrees that this sort of punishment is immoral.
Deuteronomy 24:16 Parents are not to be put to death for their children, nor children put to death for their parents; each will die for their own sin.
Good thing there is a unified message throughout the bible…