Whether one is better than the other is a matter for your genes to decide. And, again it's the carcinogens released when the tobacco is burned, same a campfire, burning leaves, etc.
Most cigarettes are indeed wrapped in a chemically infused paper designed to stay ignited, even when sitting in an ashtray. The cigarettes I smoke are not wrapped in such. So I inhale a few less chemicals, most likely not fewer carcinogens. When not inhaled the carcinogens enter one's system through the membranes in the nose and mouth. Some are occasionally absorbed through the eyes when you are downwind from the smoke. We've all experienced the discomfort of smoke in the eyes I'm pretty sure.
The real difference is, most pipe smokers, simply smoke less than cigarettes smokers. A bowl or two a day, one a week, whatever, is certainly going to be less distructive than than twenty to forty cigarettes a day. But, if you overload an already taxed immune system, pipe+sun+the loss of somebody close+the flue+ any number of other stressors could equal cancer or a heart incident. Any one or a combination of the listed could unbalance the system which is constantly fighting all sorts of killers entering in or being generated by your system.
The pipe or cigar is different from the cigarette with regard to consumption in general. All are negatives with regard to personal health. I would sincerely like to see a study using only cigarette smokers, pipe smokers and cigar smokers where each class has the same or, nearly so, daily amount of smoke and the attendant carcinogens. I have something smoldering handing out of my mouth continuously, nearly every waking hour. So far, 70+ years, my genes, a string immune system, have been able to keep up with my risky lifestyle.