Coffee will cause a greater loss of body liquid than tea and could contribute to dehydrate you faster. Especially if your source of water is limited. In that case a nice cupper of tea (with sugar) is prob better.
Being hard on the coffee meself, I'd ofcourse recommend you to stick to a combination and judge for yourself depending on the situation you might find yourself in.