They don’t both want it. The MB is too big in Egypt to purge even still; not even Mubarak could do that.
They’re doing a good job of it in a Egypt as the former Muslim Brotherhood President of Egypt was deposed and then jailed, along with a nationwide jailing of leaders.
If Egypt doesn’t want to crush Hamas ... they are being extremely good actors at getting people to believe so ... LOL ...