The TVTropes Trope Finder is where you can come to ask questions like "Do we have this one?" and "What's the trope about...?" Trying to rediscover a long lost show or other medium but need a little help? Head to Media Finder and try your luck there. Want to propose a new trope? You should be over at You Know, That Thing Where.
Edit: No, I think you're talking about Friend-or-Idol Decision.
Edited by HeraldAlberichThanks, Friend-or-Idol Decision seems right. Does it cover scenarios where the quested-for object is some sort of cure either for themselves or a loved one and they use it on the friend instead of who it was originally meant for?
^That might fall under Sadistic Choice.
Sometimes, sure. However, the cure could be them trying to bring back someone from the dead; Using it on the friend could be them realizing that they have moved on
For that second one, see also Greater Need Than Mine, Someone Has to Die, More Expendable Than You, More Hero than Thou, and Heroic Sacrifice for a few different scenarios where this sort of decision gets made.
Edited by Scorpion451
After finally getting the macguffin, the main character has to sacrifice it to save someone he befriended while retrieving it.