A few decades ago, I worked for a neurobiologist who was studying how the human body processed pain. One of the things he wanted to do was take MRI scans of a person’s brain while they were experiencing pain, so we had to figure out how to inflict pain on someone in a controlled fashion while they were in an MRI machine. I created a bunch of test devices made out of brass that could be used without interfering with the MRI machine, and the idea was to strap someone’s head down and perform these tests while doing multiple MRI scans. With the head locked in place, each scan could be compared to the rest to look for changes in blood flow. IIRC he was looking for changes in blood flow on the order of about half a percent, which would indicate that the affected part of the brain was “activated” and was actively involved in processing the sensation of pain.
Since I helped design the test, I volunteered to be the first guinea pig inside the machine. I spent about an hour in the machine, alternating between baseline tests (no stimuli) and different types of pain.
When we were done, the researcher I worked for told me “Good news, we found a brain.” Haha, funny guy. 
I don’t know what, if anything, ever came out of those studies.
But if anyone else is having an MRI, it could be worse. You could have your head strapped into place while being tortured. 
(On a more serious note, I was having an MRI because I was working for a neurobiology study - most folks having an MRI are getting the scan because they have some sort of medical issue. Torture or not, I didn’t have anything wrong with me)
Not really. X-rays use ionizing radiation. If you’re not familiar with the term, “radiation” in the sense of electromagnetic radiation is a whole bunch of things. On the low end you have long waves, which are useful for sending very low data rate messages through polar ice and not much else. Then as you go up in frequency, you have radio waves, microwaves, infra-red light, visible light, ultra-violet light, X-rays, gamma rays, and cosmic rays. Part way through the ultra-violet part of the spectrum, electromagnetic radiation becomes “ionizing”, meaning that it is high enough in frequency to strip the electrons off of atoms and create ions.
When a lot of folks hear the word “radiation”, what they are really thinking of is ionizing radiation. Ionizing radiation causes damage to cells, cancer, and all sorts of bad things, and it’s also what is responsible for making a lot of plastics fade in sunlight. Ultra-violet light, X-rays, gamma rays, and cosmic rays are all ionizing radiation. Everything lower than that is not ionizing and is no more harmful than visible light. Focus enough electromagnetic radiation in a small area and you can burn things, so focusing visible light through a magnifying glass can burn ants, and focusing radio waves inside a metal box can heat up food (aka a microwave oven). But as long as you don’t put enough energy there to heat something up, it’s safe. Not so for ionizing radiation. Much smaller levels of ionizing radiation are harmful, which is why the X-ray tech wears a lead apron and hides behind a lead-lined wall.
An MRI machine uses magnetic fields. There is no ionizing radiation involved. An MRI tech does not have to wear lead shielding.