you might try looking for a donor bike that is similar in make, model, and year. there may still be one decent bike between the two of them.
sometimes it's possible to find one with only one or two damaged components that make it virtually useless. like a mangled frame or twisted rims. you never know.