Were the prisoners' deaths avoidable?

Did the writers always plan to kill prisoners after Trial 2 or did our poor voting do it? Was it simply a matter of who died and not if?