I'm not easily offended but I do find comments like that rude and ignorant.
This story reminded me when I was at dinner a few years ago with 7 or 8 of my oldest school friends (we were working on a class reunion). One of them, who had been my very best friends for years, said the following --
"I think it's terrible for women our age to have long hair. And why would anyone want to have grey hair? They should dye it! And seriously, flatirons are everywhere. Why would anyone want to wear their hair curly."
All this, while I sat there beside her with my long, grey, curly hair. Everyone else got kind of silent and she looked up and blurted out "Oh I didn't mean YOU. You look fine that way".
I just looked at her and laughed and shook my head. It was ridiculous. And really, they all had short, dyed, fried, old lady hair. I know I looked more fine than they did. : )