A simple comparison of a custom state machine vs. the Godot State Charts extension. The blue guard and player use a simple state machine and the red guard uses Godot State Charts.
Move with WASD or cursor keys.
Playable web version: https://toxe.itch.io/godot-state-machines-vs-state-charts