Which has also fallen out of favor, the preferred term is diminished capacity. It covers so many nuisances, like the Twinkie defense.
I'm not a lawyer, but I believe asking that sort of question might make it hard to prove diminished capacity. You also don't "get away with it" you would be sent to a forensic facility or hospital facility until you were competent or no longer a danger to yourself or others.