I could accept that explanation, except for the fact that Scripture in both lists specifically mention Joseph as the descendent and not Mary.
Was Joseph not chosen for her spouse and the “father” of Jesus so that the prophecy could be fulfilled?
If it must come through both, then why is Mary not listed as a descendent?
That would actually make Joseph and Mary distant cousins. Heli had no sons, According to Numbers 36, Mary had to have a husband from the tribe of Judah to protect her fathers estate. Jesus also needed to have a lineage from to Solomon to establish Jesus claim to the throne of David since Nathans descendants were not of the Royal line.
Joseph was that descendent of Solomon. Because of the blood curse on descendants of Solomon any blood descendant or biological descendant could not be King of the Jews. Since Joseph is not Jesus biological father he was not under that curse but by Joseph adopting Jesus which qualified Jesus to be King of the Jews.
Thus, because of the virgin birth, Jesus became the only one in Israel qualified to sit on Davids throne, and remains so to this day.