Pick up a 4x3 spigot closet bend and a standard 4" hub closet flange to go over that. I almost always use this fitting when replacing a lead bend and the back fitting is tight to the flooring.
Then to offset the toilet 2"
Pick up a Caroma toilet with the 270 bowl. This allows you to offset by 2" side to side.
Or............since you now have a big hole to work with now, you can smudge any bowl over to the side, and use a red ring flange repair to recenter the bolts over the hole. Most bowls have a 2-5/8" horn and you will have 4" to drop it into. That lets you push it 1-3/8"
Or really the cool way is the 270 Caroma bowl, and that straight up gives you 2" side to side.