As others have implied, I think the OP opted out too early. Once you state you want to opt out, you're stuck getting the patdown. Wait until you're actually chosen for the body scan to say it, in the off chance you get selected for the metal detector. The agent was probably well-meaning with his advice.