the quarter panel can easily be replaced. I hit a pole in reverse (less damage than that photo you have) and they replaced the panel anyway.
They cut the panel off halfway up the pillar, then unpicked the spot welds and put on the new panel. Replaced the rear bar as mine was worse than your picture. They totally ripped off the insurance co in my opinion but i had no choice in repairer at the time. Came to about $7k (AUD), but should have been half that or even less.
It would depend if the inner panels are damaged on that one and it's hard to tell from that picture, but quite often they can look worse than they are. If you can open and close the window and the tailgate opens and closes ok and the gaps between the tailgate and the pillars on both sides are ok then i'd probably say yeah, go for it. (edit: if you know a good shop that can do it, that helps too)
edit: added pic of mine
View attachment 663216