The earlier catastrophe that brought about the megafauna extinctions around 12K years ago involved the final capture of the southern part of our system by our present sun.The southern part of the system prior to that amounted mainly to Saturn, Neptune, Mars, and Earth, that is, the four bodies with the roughly 26-degree axis tilts.
Claiming that the flood amounted to God punishing the world for sin amounts to accusing God of stupidity. IOW, it amouints to claiming that God wiped the whole system over sin, only to have sin back in business forty years later as if nothing had happened.
Guilt-tripping people over sin was the basic business model of the Levites.
There is the theory that the Flood was not about destroying men for sin, but that the human genome and animal genome, had been corrupted or polluted with foreign DNA, and what God eradicated was the genetically corrupted humans and animals.
If you don’t accept Genesis as the word of God, fine, believe whatever you want. But that’s it. Dismiss God and get on with your argument.To hold that you understand rationality at the level of God and see illogic in scripture and use it to buttress a point is ridiculous .God at the point of Creation expected sin. Only the time in The Garden was without sin. At the time of Noah God “repented” of ever creating man. Not because they were sinners but because He apparently deemed them hopeless. (What with that power to see across time).Whatever He was seeing is so far outside our abilities as to be funny. God knew from the start that man would in the end fall to evil and require His intervention. As far as I can tell, in the end, the good guys don’t win. Evil is and was always in business.