Do Egypt and Jordan not already have Palestinian refugees? I know Jordan definitely does. And it's not small number; it's hundreds of thousands, maybe even a million or more. Though according to Wikipedia, at least Jordan has given most Jordanian citizenship.
With regards to Egypt, can they handle that number of refugees? 2 million Gazans? That's a lot of people. And it's not like Egypt is some super wealthy country. And the Sinai isn't exactly a great place to host 2million peolpe.
I don't think there's a single country that can readily accept that many refugees in short order, while properly feeding and housing them, and integrating them, without experiencing massive issues for both citizens and refugees.
That's not to say that it's right for Egypt to snipe at the EU, especially with a comment like that. But it's not like either country can realistically deal with additional refugees. That's part of what makes this whole thing a shitshow. There are few good options. And the few options that are good or better, people or governments refuse.