The Bible seems to contain contradictions – the Old Testament tells us that justice involves “an eye for an eye and a tooth for a tooth” yet Jesus tells us to forget that and forgive instead.
The Old Testament contains apparent approval for genocide, Jesus tells us to love our enemies. The answer is in the fact that the Bible is not a book, but a collection of books written by diffident withers at different times to address different circumstances.
It’s message is gradually and progressively revealed and Jesus is the full & final revelation of God – his “word made flesh”