This is a rather controversial question because our views on what we understand as show off can be different and subjective. However, it's kinda like a general thing; No one likes a show-off.

I think that people who show off too often are being insensitive and emotionally tone deaf to other people's feelings. It's been one of the reasons I tried to avoid certain people in the past.
When you approach a show off with something you think they can help you with, they seem to go on and on about how much they're better off or how good they feel about it. Sometimes, they eventually come around. Sometimes, they don't and they end the 'session' without adding any value to you.
I'm not writing this without experience. Actually, I've had several.
I once got an online course on Forex trading. It was hard to ignore the excruciating fact that while each video spanned for about 30 minutes, the course creator would spend half of it talking about how he used to suck at trading, how he'd blown three accounts in the past, how his current account is doing much better now, blah blah blah!
It made the entire experience difficult and unpleasant for me.
Which is why I am asking this question because I think that while it's okay to try and avoid such people, they're not completely avoidable and sometimes, one might have to adapt to it for the greater good. I mean, isn't that what teamwork often requires?
How would you deal with it then?
How would you cope with a co-worker who's a show-off?