The game doesn't check to see if you're dead after poison damage is dealt, at least not immediately after. The first hitter may get in it's first attack before it checks. If the first hitter, for whatever reason, doesn't heal, you'll win. Works with freeze as well.