These two scenes remind me of each other because they boldly illustrate how disparate TNG and DS9 were when it came to morality. In TNG, there was often a right answer, and the lines separating what was good and bad were often clear. While in DS9, the best thing to do was not always the “right” thing to do. DS9 gave you scenarios where you could not judge whether decisions were moral or immoral, leaving you conflicted because they did not fit in those boxes.
Also, I find these scenes are remarkable because they showed how the principles that Starfleet claimed it was built on went out the window when it itself was threatened.
The difference is due to the fact that Gene Roddenberry insisted that the Star Trek world, the crew had to behave morally. Gene wasn’t involved in the creation of DS9, which allowed for more moral ambiguity.