I voted no, it's not a DEM, for all of the reasons already mentioned.
As far as "writing themselves into a corner" -- this assertion makes no sense since pencils have erasers on them. They could have just as easily, as has been previously mentioned, had Rom disable the weapons one second earlier.
Sisko's encounter with the prophets in this episode was an unexpected surprise, but that alone does not make it a Deus Ex Machina. It wasn't an unnatural evolution of the story, it didn't really come out of nowhere, and the wormhole aliens were firmly established. I don't think I can explain my reason it's not a DEM better than the others have.
Zombie Redshirt wrote:
Actually my biggest gripe with the episode was why did the Klingon fleet not go directly at DS9 itself? The Federation fleet had the Dominion/Cardassian forces tied down and the stakes were clearly outlined as victory or else death. Personally I thought it'd be very in character for Gowron to have the Klingon forces take all the glory and let the Federation take it on the chin.
The reason the Klingons didn't head straight to DS9 is because in the episode in question, space suddenly turned into a two dimensional plane which resembled ground combat with "lines" that needed to be "broken through" and all of a sudden you can't go around things. But hey, that's space combat on TV .. no way "around that" either