**Moab and Canaan**
The bloodline is traced through the fathers, not the mothers. So Rahab and Ruth aren’t viewed as bloodline.
Also, God told Moses that he is the God of Abraham, Isaac, and Jacob. He didn’t mention Ishmael or Esau in that declaration. The male bloodline of the Messiah was unbroken descendants from Abraham, Isaac, and Jacob.
I’m fully aware that Jesus was a direct male descendant of Abraham, Isaac, and Jacob. Sorry if I somehow gave you another impression.
That said, he was also a direct blood descendant of one Moabite and three Canaanite women. The apostle and writer Matthew, himself a Jew, specifically names them in his genealogy of Jesus. Tamar, Rahab, Ruth, and Bathsheba. Matthew 1.
That is unusual, but also prophetic. There is meaning in what Matthew wrote: both Gentiles and women would be considered fully members of Jesus’ new tribe, the church.