This sounds like some kind of game of thrones love island type of shit. What a clusterfuck of a family. I am trying to follow this .. so levitate marriage involves brothers but how do you know Heli and Jacob were brothers since none of their families are related as far as I can see? Feels like this is next level mental gymnastics trying very hard to make a square peg fit into a round hole.
Let's talk about the Jews as a culture. The Jews were very particular with their genealogy. They kept very meticulous records which you can read in 1 Chronicles and 2 Chronicles. Family history is important as it proves one's identity as a Jew, a partaker of the blessings of Abraham, Isaac, and Jacob and part of the people chosen by God. For a person to receive an inheritance they had to prove that they were from a particular tribe. Genealogies prove that. The Genealogy in the book of Matthew proves that Jesus is the Messiah.
God says to Abraham that he will make his name great. The ones at the tower of babel tried to make a name for themselves. The Jews care about having their names listed. If someone greatly displeased God then they would have their names blotted out. To the Jew that is the greatest punishment. With that in mind if the Jews actually messed up the Genealogy of Jesus then that would not only be an absolute shock but that would also be the go to argument as to why Jesus could not be the Messiah and so proved to be a fraud.
The fact that the Genealogy does hold up and the explanation that was given to you is satisfactory, you have been given everything you could possibly need. I provided a full account, some diagrams and even a short hand explanation -- as per your request. I am not responsible for how you interpret this information. You can ask anyone else, the internet, another Christian or a Minister, they will give you the same explanation that I gave.
Knowing how much the Jews care about family history and applying the Genealogy to prove that Jesus is the Messiah. The problem does not lie with Matthew or Luke. I will admit it's hard to get your head around, I wouldn't be able to explain this without diagrams if we were in person. It's now up to you to wrestle with this and understand it. There is nothing more I can do for you.