If the mind cannot watch a difficult situation with equanimity, it means that the mind doesn’t really understand meditation yet.
Yogis when faced with a pleasant situation, they like, like, like, and resist when an unpleasant situation arises. It happens all the time.
When the meditator is skillful, he doesn’t react much when faced with pleasant or unpleasant situations. That is truly the middle way.
Sayadaw prescribes a mantra: This is nature and there is awareness of this nature now.
When there is defilement and we inject this mantra, the mind realizes that whatever is experienced is also a nature of the mind.
Then, the mind stops paying attention to the storyline or the concept and pays attention to reality instead – i.e. greed, aversion or delusion. The mind will be keen to find out more about the nature of that defilement.