Egyptians are debatable subject. The tribes of Ham, which includes India, Laos, Cambodia, Africa, and any other race use hands as their tools of utensils on the table are southern tribes. The Tribes of Ham only use hands to eat as their utensils. Asians use chopsticks and hands, which is a mix. White people use utensils, which differentiate from Ham.
God chooses Israel as the chosen and not Ham. Ham doesn't belong to Abraham. According to the genealogy of Jesus, I follow that instead.
Before Joseph, God chose Jacob (Israel) do his bidding instead of his twin brother Esau who enjoy the company with the Canaanites.
Yes, it's true Abraham ain't descended from Ham. I'm sure Abraham descended from either Sham or Japheth which is why he's righteous to God's eyes. Abraham beget Isaac. Isaac beget Jacob (later named Israel). Then Israel beget Joseph, Benjamin, and other 10 brothers. The real reason God chose to give the gift of vision to Joseph because he haven't sinned, but his elder brothers did. They sinned three times, avenged their young sister, killed the perverted prince, and last broke the promise that the king made to Israel. Israel rebuke them and fled to another province.
Rewind backward thousand years..... Noah curses Ham (figure of speech) when he's intoxicated but it doesn't mean Ham's descendants were condemn forever. Noah foresaw Ham's bloodline would turn out horrible. Ham's descendants were the Canannites, the Moabites, then the Egyptians. All three tribes share common interest, worship idols. Same thing as Ham worship things during his childhood. Noah bless Sham and Japheth and they inherit the fruits of their labor.