TOS "The Omega Glory"
Another way to look at it is: Did Wesley make the same mistake as Riker did in his youth?Captain's log, supplemental. The Enterprise has left the Exeter and moved into close planet orbit. Although it appears the infection may strand us here the rest of our lives, I face an even more difficult problem. A growing belief that Captain Tracey has been interfering with the evolution of life on this planet. It seems impossible. A star captain's most solemn oath is that he will give his life, even his entire crew, rather than violate the Prime Directive.
SPOCK: Regulations are quite harsh, but they're also quite clear, Captain. If you do not act, you will be considered equally guilty.
KIRK: Captain Ronald Tracey, as per Starfleet Command, regulation seven, paragraph four
TRACEY: I must now consider myself under arrest, unless in the presence of the most senior fellow officers presently available, I give satisfactory answer to those charges which you now bring. Et cetera, et cetera. Those were the first words duty required you to say to me, and you said them.
TNG "The Pegasus"
RIKER: I was seven months out of the Academy, my head still ringing with words like duty and honour. When they turned on him, I thought they were a bunch of self-serving, disloyal officers, so I grabbed a phaser and defended my captain. Two or three others joined us, but it was clear by then that the mutineers had most of the crew behind them. We felt a need to get off the ship. There was a running firefight all the way to the escape pod. About five minutes after we left the ship there was an explosion.
RIKER: It means that I can't put this off any longer. Right up until this moment I had the luxury of time, but now I've got to make a choice. And, Admiral, I'm afraid my choice is this. I can't let you start these experiments again. It was wrong twelve years ago, and it is wrong today.
PRESSMAN: Now that doesn't sound like the same man who grabbed a phaser and defended his captain twelve years ago.
RIKER: I've had twelve years to think about it, and if I had it to do over again I would have grabbed the phaser and pointed it at you instead of them.
PRESSMAN: So on reflection you'd rather be a traitor than a hero.
RIKER: I wasn't a hero and neither were you. What you did was wrong and I was wrong to support you, but I was just too young and too stupid to realise it. You were the captain. I was the ensign. I was just following orders.
PRESSMAN: And if you hadn't you'd be dead right now along with all the rest of them. Dead because you listened to a bunch of mutinous cowards who were too blinded by fear to see what I was trying to do.
RIKER: They were brave enough to risk their lives to stop you from violating a treaty the Federation signed in good faith.