The question shouldn't be if something is "good", but whether it's the least evil option which is available and realistic.

One can hardly think of Stauffenberg et al and not think that there are at least exceptions when a coup by or with the military is better than the status quo.


In most potential military coup scenarios it's better to keep the military in the barracks - especially if a civil war is a possibility. There isn't going to be much of a civil war if the military stays in its barracks. The threshold for the launch of a civil war by dissenters is typically so high that the government couldn't stem it with police forces alone.
Countries with lots of tribal institutions, paramilitary forces, access to foreign forces or domestic warlords are obviously exceptions to this. Soon, countries with a very much hardware-supported police state may be added to this list of exceptions.