Gotta chip out that 2”, carefully, without damaging that, looks like a 45 offset. Looks old and brittle, not a super dyi job. Gonna take some finessing. Slices few lines through the old 2” and carefully get the old pipe out. Clean it up and put a new piece in.