What's the right word for this?
So here is an example situation:
My friend and I go to a cafe. We both want a cheesecake but there’s one left. So I decide to choose something else so that my friend can get a cheesecake.
One more example:
We enter a bus and there’s only one seat and he allows me to have it.
What is this action called? I know the idiom "throw someone a bone" but I feel like it has a bit of a mercenary meaning. The verbs "to yield", " to concede", "to give up", "to step back" also have negative meanings. The phrase "let someone have it" even though sounds quite logical in this case, still means a very negative "to attack someone". Is there a positive word for this kind of action? Preferrably, a noun and a verb