Alright, let's run this metaphor into the ground. A lawyer's job is not to help you avoid getting caught.
ChatGPT says "I can't help you hide this, escape, destroy evidence, or avoid being caught", and a lawyer would say the exact same thing; a lawyer that doesn't would be disbarred.
What a lawyer will do is help you argue that you didn't murder your wife. A lawyer can give you advice on your defense strategy, tell you what to say, what to avoid mentioning, etc. They can't give you advice like "here's what you can do so the neighbors don't get suspicious about the new hole in your backyard".