Being a Starfleet commander during a time of war is not going to be fun or pretty. You're going to have to make hard decisions that are going to cost lives and take a toll on your conscience. That episode works because it's honest enough to admit that.
There's a reason they call it "the final frontier." Because it's sometimes rough and dangerous.