In both cases there are contrast agents available. MRI has vastly superior location error but that doesn't mean everything. It also doesn't illuminate the tissue in the same way as x-ray optics. With MRI you can find where molecules are but wouldn't necessarily illuminate an equivalent density structure which happened to have different opacity to x-rays. But I am just speculating about this. Why use CT scans when non-ionizing MRI equipment is available?