It will run the same in the logic, meaning the game will behave the same.
CPU speaking, the later way is a little more intensive, making as many comparison as there are groups active. Plus, you would still need to have groups called like this somewhere, even if they are empty, just to activate and deactivate them. So don't go with this.
The second way is usually to be used when a group behaves differently if another group is active.