An ability triggers only if its trigger event actually occurs. An event that’s prevented or replaced won’t trigger anything.
July 23, 2021 · Adventures in the Forgotten Realms
If a triggered ability’s trigger condition is met, but the object with that triggered ability is at no time visible to all players, the ability does not trigger.
July 3, 2020 · Core Set 2021
An ability triggers only if its trigger event actually occurs. An event that’s prevented or replaced won’t trigger anything.