Totaled car on 2003 Subaru Impreza WRX

Theres a car I want to buy that has damage to the frame in the rear to the left. For sale for $2,500. The rest of the car looks fine. Is it worth it to maybe find another impreza and swap frams, or just to get it fixed at a dealer. Or is it just not worth it.

Asked by for the 2003 Subaru Impreza WRX
It's only worth it for parts or if you are a body man.