Whenever Messenger of Allah ﷺ was given the choice of one of two matters, he would choose the easier of the two, as long as it was not sinful to do so, but if it was sinful to do so, he would not approach it. Messenger of Allah ﷺ never took revenge (over anybody) for his own sake but (he did) only when Allah's Legal Bindings were outraged in which case he would take revenge for Allah's Sake. (Using translation from Bukhārī 3560)
مَا خُيِّرَ رَسُولُ اللهِ ﷺ بَيْنَ أَمْرَيْنِ إِلَّا أَخَذَ أَيْسَرَهُمَا مَا لَمْ يَكُنْ إِثْمًا فَإِذَا كَانَ إِثْمًا كَانَ أَبْعَدَ النَّاسِ مِنْهُ وَمَا انْتَقَمَ رَسُولُ اللهِ ﷺ لِنَفْسِهِ إِلَّا أَنْ يَكُونَ تُنْتَهَكُ حُرْمَةُ اللهِ فَيَنْتَقِمُ لِلَّهِ ﷻ