AFAIK the only solution in water that actively dehydrates you is a strong salt water (roughly, sea water). Others (e.g. coffee) are just not as efficient at hydrating you due to diuretic effects or whatever.
it depends, if you irritate your bladder through the ingestion of coffee or acids(it's a thing for some people, including myself), it might actually de-hydrate.