Final answer: The safest technique for detecting cancers is Magnetic resonance imaging (MRI).