Neither of them do. Flexeril is cyclobenzaprine, a muscle relaxer, and Tramadol is a fully synthetic drug which acts like an opioid but is not actually an opiate/opioid. There is a big misconception...
Pure tramadol HCl does not contain contain cocaine, as tramadol and cocaine are two different substances. However, it is possible that something sold on the street might contain a mixture of these...