Patriarchal
Genesis and Chronicles name Onan as a son of Judah by the daughter of Shua.
Onan is not in the line to Jesus.