Interesting viewpoint, however I don't think that would stop Israel in Lebanon (which has not been aligned with Egypt), and probably not in Gaza either.
It might have made Egypt more willing to open its border with Gaza, but could it really absorb 1-2 million refugees, as Jordan once did?