Benefits to creating light group in yaml rather than in GUI?

Hello all. Could someone give some input to me on the topic question?

I’m trying to figure out which one is the better option. I do have templates created etc in yaml that help some parts of my smart home function properly. (Not sure if that will play a role in responses)

Thank you all!!

They’re the same internally. (Zigbee can have groups which are part of the radio level so they work more efficiently, but you can only have zigbee devices in them.)