based on a book written by humans in the dark ages
JFTR, the texts of the Bible were written long before the Dark Ages
That does not make them irrelevant.
they use it as an excuse to discriminate against people that commit the high crime of being different than them.
Yes, and Jesus himself rebuked people who did that and called them “whitewashed tombs.” The scriptures say “they will know we are His disciples by our love for one another”, not they will know by how hypocritically judgy we are.