Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
https://replay.pokemonshowdown.com/gen8vgc2020-1030757293
Neutralising Gas doesn't work on switch-ins, Braviary still got Defiant boost despite having Weezing on the field.