Heavy ion transfer reactions with identical initial and final states