Vaginismus is a condition that occurs when a biological female: