Also, it differs from coffee in that it contains many mineral salts that avoid the process of dehydration caused by coffee, which just makes you pee a lot and doesn't have these beneficial mineral salts.
1. Coffee doesn't have a net negative hydration effect.
2. Both coffee and yerba mate appear to contain "mineral salts". And you certainly piss drinking the latter just like you do drinking any liquid.