Not sure that is the case at all. In Algeria the general populace was not agitating against the Islamists for the military to step in and help. The military had to go it alone.
Similarities yes, but nothing like a complete parallel.
The point is that in Algeria there was a legitimate election that the Islamists won and the military denied them power. The Islamists were outraged and, although a political minority, with righteous indignation unleashed a torrent of violence and terrorism that effectively destabilized the country’s social and economic life. The military controlled enclaves and important oil and gas facilities which allowed it to support itself and feed the population. Algeria remains a bizarre place. Now it is true the Egyptian military is more powerful and proficient but it would be a mistake to underestimate the Brotherhood and the potential for a prolonged civil conflict. Egypt is already destitute and an economic recovery in what is really an overpopulated poor country will not happen. The West ought to prepare for hordes of refugees from a failed country.