Picture this: a stranger walks up to you at a bar, looks you over, and says, 'You're the richest guy I've ever seen, I just had to say hi.' An alarm goes off inside you right away. She sees you as a walking wallet and couldn't care less who you actually are.
Now flip the scene. When you walk up to a woman and open with 'you're the prettiest girl here', the exact same switch flips in her head. You know nothing about her as a person, but you are already sold on her looks alone. Out of politeness she might smile and even give you her number, but the chat dies fast because your first line set a shallow frame.
Research backs this up. In studies of opening lines (Cunningham, 1989; Senko and Fyffe, 2010), generic flattery lost badly because those openers trigger distrust and feel calculated. For cold approaches, situational openers work best: a quick comment about the music, the venue, something funny nearby, or a specific detail in her profile. That lowers tension and starts a talk between equals.
If you still want to give a compliment early on, praise her taste, style, sense of humor, or a cool detail she picked out. Anything she chose herself lands much better than a generic line about her face. Looks are a normal reason to walk over, but build the conversation on real curiosity about who she is.
