They both can be deadly.
Just by different mechanisms.
Insidious thing about CO is it bonds to your hemoglobin and prevents oxygen absorption and transport. Doesn’t take a very high concentration to cause oxygen starvation.
CO2 isn’t toxic by itself. But in sufficient quantities it displaces oxygen with the effect similar to drowning.
CO makes one’s skin turn cherry red. You’d think someone would have noticed.