The way I see it society has already broken down. Even if she could provide a cure, it's too little too late. I also think that people like Ellie will spring up more as the human race evolves in response to the threat of the infection. If I was in Joel's shoes, I can't say I would have done anything different. It's easy to say one life is worth potentially saving millions when you aren't attached to that one life.