Like most things, it’s all about moderation. Sure, if you drink nothing but coffee, the diuretic effects could dehydrate you, but a moderate amount of beer and/or coffee can actually hydrate you just as well as water does.