We replaced a bent stern rail last year. Stainless tubing and welds don''t straigthen very well or cleanly.
Find a local fabricator and get a quote on a reapir/replacement - unless you''re lucky he will say it cheaper to build a replacement from scratch.
Then see if you can find a source for replacement pulpits for your model boat, which may be cheaper than custom fabrication.
If you buy a replacement, don''t count on the fit being exact, you may need a yard /fabricator to tweak the replacement to fit properly.
Hopefully you got or can get the insurance info from the other party, as this repair will probably cost 4 times as much as your wildest guess.