It's a selfish choice. It's selfish to take away humanity's only chance of a cure because you can't lose another daughter. How many other people will lose their daughters because of the infection? Even if the cure won't ever be mass distributed it will still save countless people the fireflies come across. Joel had a rough choice at the end but his decision was still selfish.
USE SPOILER TAGS