Of course, as you know, the first substantial biography of Jesus is in Mark, and Mark's Jesus is neither born of a virgin, nor anything special, being just an ordinary Jew until God adopts him in the same way God adopted David (Psalm 2:7, confirmed Acts 13:33); and Mark's Jesus is expressly NOT descended from David.
Then the Jesus of Matthew has a genealogy for Joseph purporting to show his descent from David, but of course in Matthew Joseph is expressly NOT the father of Matthew's Jesus, who instead is the result of divine insemination.
Then the Jesus of Luke has a different, entirely irreconcilable and equally incredible genealogy for Joseph purporting to show his descent from David, but of course Joseph is NOT the father of Luke's Jesus, who instead is also the result of divine insemination.
The Jesus of Paul, like the Jesus of John but unlike the Jesuses of Mark, Matthew or Luke, pre-existed in heaven with God and (in the role of the gnostic demiurge) created the material universe. The Jesus of Paul and the Jesus of John are said to be descended from David, though no attempt to explain how this is the case, and no mention of Jesus' parents, is offered in either case.
The matters I've mentioned above show what an irreconcilable mess the stories are.
It is only an irreconcilable mess to those who fail to study it carefully!
Each of the Gospels reflects a perspective on 'the Branch'. The Gospel of Matthew looks at the life of Jesus as the coming King of the Jews. Royalty keep genealogies, and this is reflected in the royal line through David.
Luke focuses on Jesus as the Son of Man, and the genealogy of Luke takes us back to Adam.
By combining these two genealogies it is possible to demonstrate that Jesus was of the royal line of David, whilst also being the Son of God (ie without Joseph as his father).
The following article clarifies the difficulties, and solutions.
The Genealogies of Jesus, R.A.Torrey
'1. The genealogy given in Matthew is the genealogy of Joseph, the reputed father of Jesus, his father in the eyes of the law. The genealogy given in Luke is the genealogy of Mary, the mother of Jesus, and is the human genealogy of Jesus Christ in actual fact. The Gospel of Matthew was written for Jews. All through it Joseph is prominent, Mary is scarcely mentioned. In Luke, on the other hand, Mary is the chief personage in the whole account of the Saviour’s conception and birth. Joseph is brought in only incidentally and because he was Mary’s husband. In all of this, of course, there is a deep significance.
2. In Matthew, Jesus appears as the Messiah. In Luke He appears as ‘the Son of Man’, our Brother and Redeemer, who belongs to the whole race and claims kindred with all kinds and conditions of men. So in Matthew, the genealogy descends from Abraham to Joseph and Jesus, because all the predictions and promises touching the Messiah are fulfilled in Him. But in Luke the genealogy ascends from Jesus to Adam, because the genealogy is being traced back to the head of the whole race, and shows the relation of the Second Adam to the First.
3. Joseph’s line is the strictly royal line from David to Joseph. In Luke, though the line of descent is from David, it is not the royal line. In this Jesus is descended from David through Nathan, David’s son indeed, but not in the royal line, and the list follows a line quite distinct from the royal line.
4. The Messiah, according to prediction, was to be the actual son of David according to the flesh (2 Samuel:12-19; Psalm 89:3, 4,3 4-37; 132:11; Acts 2:30; 13:22,23; Romans 1:3; 2 Timothy 2:8). These prophecies are fulfilled by Jesus being the Son of Mary, who was a lineal descendant of David, though not in the royal line. Joseph, who was of the royal line, was not his father according to the flesh, but was his father in the eyes of the law.
5. Mary was the descendant of David through her father, Heli. It is true that Luke 2:30 says that Joseph was the son of Heli. The simple explanation of this is that , Mary being a woman, her name according to Jewish usage could not come into the genealogy, males alone forming the line, so Joseph’s name is introduced in the place of Mary’s, he being Mary’s husband; Heli was his father-in-law and so Joseph is called the son of Heli, and the line thus completed. While Joseph was son-in-law of Heli, according to the flesh he was in actual fact the son of Jacob (Matt.1:16).
6. Two genealogies are absolutely necessary to trace the lineage of our Lord and Saviour Jesus Christ, the one the royal and legal, the other the natural and literal, and these two genealogies we find, the legal and royal in Matthew’s Gospel, the Gospel of law and kingship; the natural and literal in Luke’s, the Gospel of humanity.
7. We are told in Jeremiah 22:30 any descendant of Jeconiah could not come to the throne of David, and Joseph was of this line, and while Joseph’s genealogy furnished the royal line for Jesus, his son before the law, nevertheless Jeremiah’s prediction is fulfilled to the very letter, for Jesus, strictly speaking, was not Joseph’s descendant and therefore was not of the seed of Jeconiah. If Jesus had been the son of Joseph in reality, He could not have come to the throne, but He is Mary’s son through Nathan, and can come to the throne legally by her marrying Joseph and so clearing His way legally to it.’