When I said yesterday, "children deserve to die" that was misleading - they don't deserve instant death as occurred in Egypt.
Whilst you wipe the bottom of the evil god.
Deuteronomy says, "Fathers shall not be put to death for sons, nor shall sons be put to death for fathers; everyone shall be put to death for his own sin" (Deut 24:16)
So how do we reconcile this with Exodus 4:23, God threatening to kill Pharaoh's firstborn?
If God had killed the Pharaoh and the slave drivers only, and predicted it beforehand so Egyptians knew it was an act of God, they still would have tried to hold on to the Israelites and keep them as slaves, since they depended on them. What was needed was for the Israelites to be
driven out. Taking out the firstborn definitely achieved that. Exodus 11:1 says, "1Now the Lord had said to Moses, “I will bring one more plague on Pharaoh and on Egypt. After that, he will let you go from here, and when he does, he will drive you out completely."
One Jewish commentator says that since the Egyptian culture elevated the firstborn over the other siblings, the other siblings needed slaves in order to feel superior to someone. By removing the firstborn, the slaves would no longer be needed and so were taken out of the equation as well, leading to them being driven out.