Rule note: you have to move 1 doom from defeated Sliver Twilight enemy, if any.
"When": The word "when" refers to the moment immediately after the specified timing point or triggering condition initiates, but before its impact upon the game state resolves. Thus, you need to move doom before you resolve defeat, so that the enemy is in play at that time.