Can't change variables on collision, if statement being ignored

Figured it out, there was an extraneous “var” in my code throwing stuff off.

Are you sure you set both ‘flag’ and ‘flagStand’? I would get into the debugger and make sure things are what you expect.
Also I’m not sure checking for gameObject equality is the best way, esp since you Destroy flag. Why not use Tags?