Assalom aleykum, ustadh. Could you give a better definition and clarification on rushing for doing good deeds like trying to become better than friends like in a sense comparing ourselves without getting into the area of 'hasad'?May Allah reward you.

Ustadh AbdulAziz al-Haqqan
Wishing to be like others in good, and striving to reach or surpass them, is ghibtah and it is praiseworthy, for Allah Jalla wa ʿAlā (the Majestic and Exalted) says, the meaning of which is: and for that let the competitors compete. Hasad is to dislike the blessing Allah gave them or wish it gone, and the competition must not wrong or harm them, as the scholars said.