373.1. Although these events are simultaneous, the applied Replacement Effects are ordered. If multiple applied Replacement Effects with different controllers would execute simultaneously, they execute in turn order.
373.1.a. When executing Replacement Effects, the Game Actions that comprise their instructions are performed before any simultaneous unmodified events. Example: Two units die simultaneously. One of those units has their death replaced by being healed, exhausted, and recalled. The healing, exhausting, and recalling of that unit will be performed before the other dies.