>>17843343common misconception.
The Cohenites/Zadocites were part of the Hebrews, but not israelite YET.
Joseph whom was of Luwi-cimmerian ethnicity was sold into Hittite-Hyksos conscription against Egypt, which is why the Luwian-curious priesthood of Potifer in Iunu/Heliopolis recruited him as a prospect. Joseph was after proving his prowess acknowledged as a spiritual descendant of "Enoch" aka the Luwian Woad-priest Thoth by Potifer,- allowing him to marry his daughter Asenath and save a sliver of "Face" for Potifers region in the eyes of Egyptians by allying with a purported Thoth-in-the-flesh after the otherwise catastrophically embarrassing defeat at the hands of the Hyksos.
Unfortunately for the newly formed Israel aka the "Iudaim" of Iunu,- the New Dynasty upheld the typical line of Egyptian denial-of-defeat by portraying Potifers region as having been collaborators with the Hyksos and treacherous towards Egypt instead of admitting that Egypt had been successfully defeated by an outside force. (unthinkable for the grainfed egyptian mind).
It is then at a point just after the expulsion of the Hyksos that the Greco-Danite coastal trader tribes as well as the new Potifer-Luwian priesthood of Moses and Aaron that they fled into the lands where the Babi-priesthood also lingered,- being the furthest place where the priesthood of Iunu knew they had plausible allies towards their eastern borderland around the Aqaba gulf.
This is where the Levitic/Potifer gold got melted down as described in previous post.
The truth is likely that Joseph was dragged from his family by Hyksos conscriptors due to being an able bodied young male without family. The shaming of the other brothers was likely a later Judah-Levi story tactic used to further emphasize their claimed right to rule over the family of Jacob and thus all the northeastern boderlands of Potifers area of defense, which Joseph had married into and thus was the inheritor of according to Judah-Levi.