Rule #1: Always ask people if they want feedback before you give it. Do it for men, women and non-binary folks. If you can, give hints about the topic ("hey, would you like feedback about your skills alignment with the problem?").
I've always been amazed at how much better feedback is received by anyone when they've explicitly agreed to hear it.
This is of course anecdotal, so I'm not trying to paint anyone with a broad brush. Just wanted to point out that in my experience, asking if you can give feedback/advice/etc isn't always well-received. I can't imagine unsolicited feedback would've been any better received in those situations.