Not at all the same ...
I don't much care for women dressing in silly heels, and the only time it should be required of them is for an actress whose role demands it.
But a one-off glitzy "awards ceremony" (sounds ghastly for those of either sex who are not career arse-lickers) is not at all the same as requiring a dress code every bloomin' day at the office. Speaking as a downtrodden grunt, I know which of those battles I would pick!
I didn't exactly pick it myself, but I had it thrust on me when I wore shorts to the office. This was just the one half-day's work, having gone directly to the office after spending the morning travelling (booked to annual leave). No meetings, just sitting in my regular office. I pointed out that many of my female colleagues routinely wore shorts (shorter than mine) and that it was direct discrimination to forbid it to me, but PHB was having none of it: they could wear shorts because they ... ahem ... had nice legs!
I'd like to give her a thumbs-up for calling out idiocy. But I wish we chaps had the same kind of right as she exercised there when we're expected to put on a dumb show!