One is the genealogy of the Blessed Virgin Mary, the other is of St. Joseph.
I know that is how they explain away the differences. Since Judaism figures out who is Jewish by the descent from the mother, the descent from Joseph doesn’t matter.
We will leave out the Roman soldier who fathered Jesus on her.