The
M'Naughten Rule, or whether the individual suffers from such a defect of reason that they are unable to tell the difference between right and wrong is not the legal standard for insanity in all jurisdictions.
Insanity defenses are actually quite rare. Off the top of my head, it's used in less than 3% of cases, and is not usually successful.