As is widely known, for participation in the bosses are taken into account:
Damage inflicted / XP gained
The damage received
Healed damage
(I can't think of anything else)
Relatively recently, I witnessed where the person who did not inflict the most damage received the rarest item.
The difference in experience gained was about 3000-5000.
I can't tell which category the aforementioned person was in, and neither can she, hence the question.
Which category matters the most? Is it pure luck?