Coffee or tea?

I like both, but they say that coffee contains a substance that may be carcinogenic or slightly dangerous to health if consumed regularly.