Best way for a water tight joint simple Use a “Cup” joint.
1-What you do is remove the existing floor flange.
2- Clean the heck out of the existing lead pipe
3- Get the measurement internally either 3″ or 4″
4- Get a new piece of “D” lead that weights 2 times the diameter of the pipe per ft.
In other words a 4″ pipe would weigh in at 8 PPF
Now with this CUP Joint you use sperm candle or a VERY good Quality flux and attach a new pice of lead to the existing and then the floor flange later after the tile is set. Becarseful not to melt the existing lead.
Try to get 40 60 solder in bar form