Yes but in both those instances, the party making the ruling wasn't invested in the outcome.
What Janeway did would be no different if you sat as Judge as someone who had wronged you.
Janeway in her ruling possibly set a dangerous precedent.
There was nobody on Voyager that could have been impartial. How could you expect a fair trial?
Look back a few posts, he's willing to put Tuvix into stasis for the whole 70 year long trip home in order for him to get a fair trial
The conclusion: 3 dead souls
End of debate.
Seriously, I don't see how someone can argue it's inhumane to "murder" one person for the sake of two but it isn't inhumane to put someone in stasis for 70+ years?