Different kinds of emissions. CO2-wise, yes indeed the moped is less harmful.
But the other emissions... a modern car is essentially a chemical lab on wheels. At least one actively managed catalytic converter to remove NOx, another one for diesel engines to burn leftover carbon monoxide, and then a particulate matter filter to trap and burn-off soot and other micro particles.
A two-stroke engine usually only has a passive catalytic converter and that's it. It emits by design unburned fuel-oil mixture into the exhaust because the mixture is used as a lubricant, and beyond a muffler it has absolutely zero noise emission control.