Obsessive-Compulsive Disorder (OCD) is characterized by the presence of obsessions and compulsions. Obsessions are intrusive thoughts that cause significant anxiety, while compulsions are repetitive behaviors or mental acts that a person feels driven to perform in response to an obsession. A common treatment for OCD is cognitive-behavioral therapy.
Which of the following best describes how compulsions function in the context of OCD?