For equivalent doses, tramadol causes less constipation than codeine. However, tramadol can cause seizures in some, apparently without warning. Codeine does not cause seizures. Constipation doesn't kill anyone. Having a seizure while driving, etc., can be fatal. Some people get no relief from codeine and tramadol, while others are happy with one or both of them.