Emotions are difficult to control, but we do have control over where we direct our attention. One can choose not to dwell on a person for whom one has an attraction if it’s clear that this will only make one miserable. This isn’t the same thing as denial, or controlling the emotions. It’s recognizing the emotion, seeing it’s negative potential, and choosing not to nurture it with one’s attention.