He may have said it was logical, but it was prefaced with 'Do not grieve, Admiral'. Spock is saying his last words to his friend, and trying to offer some comfort. As he says, this was his Kobayashi Maru solution, to sacrifice himself for his ship. In his no win scenario, he chose death to pay for the lives of his shipmates. A counterpoint to Kirk's solution which was referenced throughout the movie. Kirk cheated, so he never had to face death. Spock took the sacrifice upon himself to save others.
There is so much more to that scene than the literal reading of 'it is logical', and it saddens me that you find it to be bad writing. I find the ending of Star Trek II one of the most memorable bits of writing Trek's ever done.
I agree with all of this.
It
is an outstanding scene. And I've never said I thought it was neither heroic nor the right thing to do.
I can't remember if I ever stated I thought it was "bad writing." If I did, then it was poor choice of words. I think "careless writing" might be more accurate. But I really only mean that in the sense it's presented as being absolute or matter of fact to the point it's become the sort of de facto doctrine of the franchise--**Which is what I really take issue with.
The thing about any syllogisitic axiom is, in order to be considered "pure logic," it must be 100% true 100% of the time. And 'The needs of the many...' isn't that. The example I used above was a poor attempt to demonstrate how that may be the case. But a simple Google can net plenty of results on the pitfalls of Benthamian utilitarianism.
And, to Meyer's credit, I've often wondered if Kirk's "Of all the souls I've met..." line wasn't actually meant to show Spock's actions really weren't based in logic. On the surface, it comes off as the kind of ironic sentiment people often use in eulogies. But I wonder if the point was to show, even if he thought he was acting logically, his actions where out of pure emotion: duty, camaraderie, friendship, and what he
felt of
believed to be true based solely on the information he had at the moment. Any race of culture of people that is [supposedly] based on pure logic would know this.
Now that I think on it, there might be some great story potential here. What if the Kir'Shara/Surak's teaching really is, despite most Vulcans' claims to the contrary, more of a faith or doctrine-based philosophy rather than simply being "true logic." Given Micheal's upbringing, I think there's potential to explore the more nefarious (for lack of a better term) side of a philosophy that promotes itself as being always right and absolute, but really only is some of the time and is heavily subject to bias to that end.
Not only could it make for a good story, but it would most certainly be culturally and politically relevant and poignant.