That's not the same. Orderr 66 wasn't an act of war but generalized "police" intervention. They did not engage the Jedi in battle they executed them in a way akin to a field summary execution.
But really my problem is not with the Jedi committing unsavory tactics. My problem is with the show framing them as clever tricks with nobody raising the implications. Especially since several characters are "committed" to peace. The use of a slave children army in the form of the clone is shown not to be a morally flawless actions, even if not treated as the horror it should be, so at least there's that.