If Mire Blight’s ability triggers, the creature it was enchanting at that time is the one that will be destroyed when the ability resolves. It doesn’t matter if Mire Blight leaves the battlefield or somehow becomes attached to another creature by that time.

Artwork
Loading artwork…
Mire Blight
Jumpstart 2022 · #442 · EN
Nonfoil—Foil—
Card rules
Enchant creature
When enchanted creature is dealt damage, destroy it.
"Is there anything in Guul Draz that *doesn't* suck the life out of you?" —Tarsa, Sea Gate sell-sword
Common · Illustrated by Dave Kendall
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Mire Blight’s ability triggers when the enchanted creature is dealt any kind of damage, not just combat damage.