It's like saying "I just bought a car and I"m happy with it but I still like to look at other cars at the car show or in the showroom because it makes me feel good".
Of course not. Acknowledging that two things are the same in some ways does not imply that the two things are the same in all ways. Don't be intentionally obtuse.
Seriously; unsolicited negative comments on pretty much any aspect are not ok. Sexually charged comments are not ok in most environments. But I don't want to live in a world where complimenting someone on their appearance is a bad thing.
There are legitimate criticisms you could make of the comment in question, but "I was curious what you looked like" is assuredly not a comment on someone's appearance.