I'm a she....
But I am not the one who wrote the New Testament genealogies as both being the genealogies of Joseph. Jacob begat Joseph, says Matthew, and Joseph was the son of Heli, says Luke, and they were both absolutely 100% correct as they stand. The genealogies are both Joseph's and nothing about Mary.
Jacob begat Joseph and as as his own firstborn son born to his wife who was the barren widow of his half brother, Heli, Joseph was raised as Heli's son with Heli's inheritance according to the law of Kinsman/Redeemer.
That is what Eusebius, 4th century historian, made clear in his "Ecclesiastical History", book 1, chapter 7, page 21, 2nd paragraph 2nd sentence:
"Heli and Jacob were brothers by the same mother. Heli dying childless, Jacob raised up seed to him, having Joseph, according to nature belonging to himself, but by law to Heli. Thus, Joseph was the son of both."
Jacob and Heli were of one mother, but of two fathers. Matthat dying after Heli was born, his mother was then free to marry outside of the family since she was not barren. She married Matthan, and they had Jacob.
Mat 1:16 And Jacob
begat Joseph the husband of Mary, of whom was born Jesus, who is called Christ.
Luk 3:23
And Jesus himself began to be about thirty years of age, being (as was supposed)
the son of Joseph, which was [the son] of Heli,
Jeremiah 22:30
"Thus says the LORD, 'Write this man down childless, A man who will not prosper in his days; For no man of his descendants will prosper Sitting on the throne of David Or ruling again in Judah.'"
Matt 1:11
Josiah became the father of *Jeconiah and his brothers, at the time of the deportation to Babylon.
So "Jeconiah is written down as childless" though he had children, not one of them would prosper, sitting on the throne of David.
The prophecy is fulfilled in Jacob, the descendant of Zechoniah from Solomon, begetting Joseph but is written as "childless" for a son of David to sit on the throne because his firstborn son is raised as Heli's son, in Heli's name with Heli's genealogy and Heli's inheritance.
So Joseph has Heli's name and inheritance for the throne of David, and his firstborn son through Mary's womb inherited the throne of David -proving that Joseph had no sons before he became the legal father of Jesus, and so, the brothers of Jesus mentioned in Scripture were sons of Joseph.