The Bible has several verses that warn against myths and meaningless speculations. Here are some examples:
1 Timothy 4:7: "Have nothing to do with godless myths and old wives’ tales; rather, train yourself to be godly."1 Timothy 1:4: "Don’t let them waste their time in endless discussion of myths and spiritual pedigrees. These things only lead to meaningless speculations, which don’t help people live a life of faith in God."
2 Timothy 4:3-4: "For the time will come when they will not endure sound doctrine; but wanting to have their ears tickled, they will accumulate for themselves teachers in accordance to their own desires, and will turn away their ears from the truth and will turn aside to myths."
Titus 3:9 "Avoid foolish controversies and genealogies and arguments and quarrels about the law, because these are unprofitable and useless."
Note: Avoid genealogies what matters is God created you.