Tank vs tankless is a separate choice
Replacing a failed tank with another tank is often the cleanest path. Tankless can be excellent when the home has the right fuel supply and venting, and when simultaneous hot-water demand is the real pain point. It is a poor upsell when the gas line or electrical service cannot support it.
