Does that mean the bible which assumes that God wiped out most of humanity with the flood is definitely wrong
No.
a) The existence of an afterlife would mean that those people were not destroyed. They had a really bad day and then woke up someplace else.
b) The story of the flood, in itself, may be a parable (by which I mean, a story intended to teach a lesson, usually of a moral or ethical nature, without necessarily being true) like the parable of the Good Samaritan, or the story of the Garden of Eden.
c) There may have been reason for the flood.
Any one of these alternatives could answer your question; personally, I think (b) is the most likely, though (a) and (c) are also possible.
b) The story of the flood, in itself, may be a parable (by which I mean, a story intended to teach a lesson, usually of a moral or ethical nature,
If it's a parable, isn't the parable about the fact that certain actions like gay sex are bad enough that they warrant a God engaging in genocide? Even if the God didn't actually commit the genocide but merely wanted to make the point that doing so is justified, that still seems bad to me.
Another month, another rationality quotes thread. The rules are: