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.
In the replay, it was my opponents webs so it shouldn't have been activated. Would appreciate a fix to it seeing as to how that was a pretty big L as I was at the highest I have gotten in gen 8.
https://replay.pokemonshowdown.com/gen8ou-1019532771
Defiant no longer gives plus two attack as evidenced by this video
at the 3 minute mark falinks switches onto webs, but does not get the +2 boost.