Resist vs. Avoid

Hi, I need some clarification when it comes to resisting an emotion and avoiding it. In my mind they are very similar. I get that resisting means pushing an emotion away, whereas avoiding it means not paying any attention to it. But I guess if you are resisting an emotion aren’t you just avoiding it? Can you give me an example to show me the difference here?

Thank you!