Teflon tape will help stop a leaking pipe that’s under strain. Plumber's Putty will provide some water resistance but won’t withstand significant pressure. Teflon tape is, therefore, better for leaks