It was a total mess of a situation with no 100% morally correct solution. I think she did the closest to the right thing though.
Related...I don't understand the hate this episode gets. Treck is at its Treckiest when it's weird future moral dilemmas.