It appears that the verse in question isnt referring to dveṣa/dosa, as in one of the Three Poisons. The verse in question uses the word vera instead, which also means hatred:
Pāli to English, Chinese, Japanese, Vietnamese, Burmese Dictionary
The original quote below:
Akkocchi maṁ, avadhi maṁ, ajini maṁ, ahāsi me,
He abused me, he struck at me, he overcame me, he robbed me,
ye taṁ na upanayhanti veraṁ tesūpasammati. [4]
those who do not bear ill-will towards this their hatred is appeased.
Na hi verena verāni sammantīdha kudācanaṁ,
For not by hatred do hatreds cease at any time in this place,
averena ca sammanti, esa dhammo sanantano. [5]
they only cease with non-hatred, this truth is (surely) eternal.
Note that youre specifically instructed to do this, even if the person actually did wrong against you. I feel like the Buddha just didnt really care about justice or retribution. He only really seemed to care about eliminating suffering in the victims of samsara, and helping them to leave as quickly as possible