The lyric is a very different device. It’s half old-school analog, and half new-school digital. Maybe more importantly it is VERY self contained and fairly shielded … I don’t know if that’s true of other aids.
X-rays: As was noted elsewhere they tend to be used in a way that tightly controls exposure. If you pay attention you’ll see the technician adjusting shutters … they look at first like they are limiting where light shines, but that’s a guide, and they are really limiting where the x-rays will be emitted. X-rays are also quite directional, and there’s minimal bouncing about.
CT is a form of x-rays … if you’re head is not the area of study it’s probably very little exposure.
MRI. Now we’re talking a different technology. MRI uses magnetism and its effect at the atomic level. The MRI would probably NOT hurt the hearing device, but YOU are a different issue. Also, the Lyric devices in particular are controlled using a magnetic wand, so they are clearly sensitive to magnetic interference.
Any metal, including metal in your hearing aid, could interact with the magnetic fields. It could be forcibly moved and not really care that you’re in the way. It could also heat up, and not really care that your tissues are near by.
No matter what kind of hearing aid you have, make sure you remove it before an MRI. This is more about protecting YOU than protecting the hearing aid.