Some point to the different genealogies of Jesus as “errors” in the Bible. However, Matthew gives the paternal genealogy of the Messiah (through His legal father), and Luke (3:23) gives His maternal genealogy (through His mother). Some skeptics also claim that Jesus cannot be the Son of God if Joseph was His father, “as the two genealogies attest,” and that the prophecy that the Messiah would descend from the line of David was thus unfulfilled.
However, Luke 3:23 says “as was supposed,” meaning He was thought to be the son of Joseph. He wasn’t. He was the Son of God (God manifest in human form). Matt. 1:16 says, “Joseph the husband of Mary, of whom was born Jesus who is called Christ.” In neither case is Joseph called the father of Jesus.
In both of these lists, the genealogy goes through the lineage of David (Luke 3:31 and Matt. 1:6). Mary is a descendant of David through Nathan, giving Jesus the physical right to David’s throne. Joseph, as the adoptive father, gives Jesus the legal right to David’s throne.
Matthew 1:1 The book of the genealogy of Jesus Christ, the Son of David, the Son of Abraham