Certainly the gospels can't agree on Joseph's lineage. But of course Joseph's lineage should be of no interest to a Christian - Joseph wasn't Jesus's father, Jesus did not come from the seed of Joseph. It's one of the areas that Christian apologetics gets tied into knots because of the misunderstanding of the word for "young woman", there was no prophecy that said the messiah would be born to a virgin.How about we don't know? And wouldn't presume to make it up.
What we do appear to know is that their origin story appears to have been made up.