The last example is just... horrific. I don't have more to say on it except that we shouldn't use it as a positive example of anything.
You mean, the absolutely horrific military defeat.
Whereas you might say that many Palestinians (specifically the ones who joined Hamas) had little to gain from the status quo, and little to lose from violence. When you are born locked in the world's largest prison, becoming a terrorist might seem appealing.
It's true that that's the case today. But it took a while for this transition to occur. Basically, the entire wartime generation had to retire/die out. In the 50s and 60s Germans were still very keen about downplaying the atrocities (even if they of course recognized that they occurred) and especially being very lenient towards war criminal and even protecting them from foreign governments (e.g. Heinrich Boere).