Even if the Bible was a perfect copy of everything Jesus said .... those things were said when he was alive on Earth, as a human.
Therefore, Jesus was fallible, as a human. I'm certain the Bible even says such things.
No human alive 2000 years ago could comprehend the realities of today. So no human then could've possibly said that such and such social act, which is common today, is acceptable or unacceptable, in any meaningful way.
It would be like saying now "no human should ever stick their pinky in any other human's ear! That shall be forbidden as sin!" , when it would be impossible to know that in 2000 years from now, that's the main way two people have sex.
Exactly the same nonsense as some 2000-year ago human saying "a man shall never be allowed stick his wiener in another man's butt!"