Plumber's putty should stay soft within limits. If you can't readily dent that stuff with a screwdriver, it is probably something other than plumber's putty. I am wondering if you could, if the need arises, cut that area of pipe as close to the wall as practical, and glue on a trap adapter. Then get a 1-1/2 inch slip joint p-trap.