I’m sure others will jump in and explain the lineage question better than I can. But I am puzzled why you focus on the lineages and why that is so important to you? Do you believe Jesus was God and died on a cross to atone for our sins? One either believes or they don’t.
If you believe you have eternal life with Jesus (God). If don’t believe then you spend eternity without God. If you think about it we all get what we want.
The linage of David to Joseph as a joke is to cool off those who worship the “Bible: instead of Jesus . Even Jesus admonished us to not worship scripture. I’m tired if these idolators telling me about salvation when they are so diverted, they don’t have a clue. They actually worship Mary as a goddess!! you can not make that up.