Personally I would consider caffeine more impairing than nicotine but I don't think either are a big concern as far as impairment goes. Impairment on those substances is probably best handled in law with the same general, hand-wavey subsections as drinking too much water or eating too much Taco Bell.
Aren't stimulants the opposite of impairing? :shrugs:
Would you not consider someone high on meth intoxicated? I think stimulants are clearly intoxicating too. Culturally, we're comfortable people doing their jobs right high on caffeine but unless you make a scientific study you cannot know whether that's the case. It's possible caffeine slightly impairs your ability use a vehicle, or maybe enhances it, or maybe it has no effect.
But I'd still trust Joe to drive the forklift after a cup of coffee and cigarette than a drink and a doob.