Not all American cars are junk. I’ve fixed American cars that were written off because they needed 2 doors and were a cheap fix. Carfax is your friend here. Just remember when you go to sell again, most people do no research and automatically assume all imports are junk so you could loose a chunk of money.
1st task to make sure its not a US import as majority are insurance write offs and/or flood damaged and cheaply repaired here, you can run the VIN through carfax at a slight cost if an import to get a service and accident history. Also you can run the VIN number through copart and autoio websites and see the actual pics of the state of damage it was in. ( if the car was sold through them, since they are the biggest auction house of salvage us cars the chances are high of that happening )
Requires some legwork if you spot a deal, not all US salvage imports are total junkers, sometime the insurance companies will write off cars with minor damage like a small fender bender