Replacing the lead bend for the toilet is doable.
I use a hand drill and drill out most of the lead.
I can pry out the rest of the lead with a screwdriver.
When the hub is clean, a fernco seal can be used inside the hub and new pipe shoved in.
Some like hj use cast iron pipe and fittings,
and other like me use ABS pipe and fittings.
Different styles that work.