Adding a decorator to a task vs selector

From what I can understand, you can add decorators to any node, whether it’s a composite (like a selector) or a task. And decorators are essentially logic checks. So let’s say we have a simple true/false check for some condition. Most of the tutorials have it set up that there’s a decorator on a selector that only has a single task (so if true, execute that task).

What’s the difference between that and putting the decorator directly on the task itself? For example


If I understand how decorators work correctly, don’t these do the same things?

There should be no difference whatsoever, or in fact putting decorator on a leaf node should be more optimal. Let me know if you run into any issues going that route.