Do we, in fact, all know this?
It's my understanding that moderate coffee consumption is linked to lower rates of cardiac problems.
It's not.
I would be willing to bet there is no controlled/quality study that produces evidence showing that moderate energy drink consumption correlates with better health outcomes of any sort.
Perhaps it would work if someone truly smoked only occasionally in an unusually high stress scenario, and didn't get addicted, but what percent of people can smoke occasionally without getting addicted? 1 in 10k, 1 in 100k?
But for someone who is addicted to nicotine, you're correct in that it's just relieving the stress of not having had nicotine for a while.
However, there's a benefit that's unrelated to stress. Nicotine helps solve problems. Have a tough problem to solve and you've been pondering it for a while? Take a cigarette break, and you'll likely come back with a solution.
We all know caffeine can give you heart problems. If you take it anyway that's on you, and sometimes it's objectively a good choice (if you can't work without it). It's called making an informed decision.
I'm not saying life works exactly like a video game but with drugs it's pretty accurate.