You discovered a bug: When you are invincible after respawning, you can defeat the boss just by colliding.
Bug fixed, thanks!