I pretty much always envelope out the parts I want to replace, record punches to new track, crossfade them in listening carefully to make sure they blend in smoothly with none of the tics or pops that can happen if your envelope is too steep, and then mix the tracks down to a new comp track...