They are both writing to the same object - when you are doing something simple like adding group membership, it doesn’t matter which cmdlets you use.
If you are setting an Exchange-specific attribute, to remain in support, you should use the Exchange cmdlets.