Yeshua is a decedent of David on Mary's side, according to a number of scholars who've overcome an error confusing Mary's father with Joseph.
David’s son through his father. Y chromosome. Jesus was conceived by means of the Holy Spirit. In modern days babies are able to be conceived by means of doctors and lab techs, not that those folks are the literal fathers (although there have been some stories...!)
Studied the Bible from Catholic school though several readings and decades as an adult Christian before this interesting item came to my attention.
At the beginning of Matthew 1 and Luke 3:23 are 2 different genealogies for Jesus - he had inheritance by blood through Mary and legally through his adoptive father Joseph.