Modern day Egyptians, who are a Semitic people who speak Arabic, are not the same people who inhabited Egypt under the Pharoahs. They are not even remotely related.
I think I said something close to that, with more complete background as to why that is true.
However, to say, of todays Egyptians that: "They are not even remotely related [to Egyptians of the time of the Pharaohs] is not true."
No matter what conquerors, conquering people or migrating people came to Egypt in between or after the Pharaohs they did not create a genocide or wholesale replacement of the existing people in Egypt of that time who, by all historical accounts, continued to out number their new leaders and the people those leaders brought.
Therefore, some elements in the gene pool of modern Egyptians are continuations of the genes of the Egyptian people from the time of the Pharaohs.
The fact that all Egyptians today speak Arabic does not mean that all the ancestors of all Egyptians came from Arabia, anymore than did all the ancestors of all Americans come from England.
The Egyptians in the time of the Pharaohs were already of "mixed" ancestry, related somewhat to Ethiopians (possibly mostly), somewhat to other North Africans as found then in Morocco, Tunisia, Libya and Algeria as well as having already some component of semitic or proto-semitic cousins of Jews and other "tribes" from Arabia as well as from Mesopotemia.
That ancestry, present in the time of the Pharaohs did not become extinct, genetically, it continued in the later mixing of "Egyptians" with Greeks, Hyksos, Assyrians, Persians, migrants from Carthage, "asians" from Anatolia and Mesopotemia and later "Arabs". (I might have even left some out)