Either way, it falls solidly on the side favoring ecstasy over tobacco.
How would you define a "hit" anyway? Doses don't really compare, and even if it's 1-cigarette/1-pill, it's all societal how much is in each "dose"...
If you try to say, what is more dangerous - taking one ecstasy tab or one cigarette - even if the ecstasy is more dangerous in the short term, the possibility of addiction could make the cigarette much worse.
I guess maybe you could work the other way - start with say, 1 cigarette, and then try to calculate what amount of ecstasy is an equivalent dose? However I would guess that it fluctuates largely on how much you have at the same time?
I.E. One day you'll have rubbish "Roles Royces" and you'll have 6 of em, another you'll have some nice "Mitsis" and just take 3 and on other days you'll have an insane "Red Tulip" that was incredibly more potent than all the others so you only needed one. Of course the name never really means anything as you can have both good "mitsis" and bad "mitsis".
Then there is also the case where the pill is actually cut with something else (pretty common I believe), perhaps a bit of ketamine or god knows. The issue perhaps is that an "ecstasy" in its black market form may be very different from its medical definition making it very difficult to compare like for like.
Thankfully it isn't at all addictive so it's not hard to stop. :)