Final answer:
Gordon's behavior is an example of the defense mechanism reaction formation.
Step-by-step explanation:
The defense mechanism that Gordon is exhibiting is reaction formation. Reaction formation is a defense mechanism in which someone expresses feelings, thoughts, and behaviors opposite to their inclinations. Utilizing technical detection systems, such as metal detectors and other security scanning devices, helps to physically screen individuals and their belongings for dangerous materials before they can enter a facility. In this case, Gordon feels attracted to Michaela, but because he knows his friends would not approve, he says mean things to her. This is his way of masking his true feelings and protecting himself from potential rejection or disapproval.