I've picked my shots, so have never faced precisely the circumstance you describe. Rebuffed affection, on the other hand, has a) hurt, as I would assume it would anyone, though I don't remember reacting at the time; b) merely been instructive, as in "all right, she doesn't want that."
"Welp, read that girl wrong. How about this one..?"
Also, yeah, a learning exercise. I'd probably vary my approach the next time.
Now, if it were someone who I'd been getting good vibes from for a long while.. I'm not afraid to admit that I'd probably be hurt. I'd analyze the situation a bit too much trying to figure out what went wrong.. and then vary my approach for the next one