I'd say from experience that the market generally places more value on excellent body & paint than #s matching.
But there are exceptions, like the rarest #s cars where the body & paint can be redone and the value supports that expense.
Body & paint are much more expensive areas to deal with than assembling a drivetrain, for 90% of the cars made.

I prefer both, but hell, I'd also prefer to have a million bucks in the bank laugh2
(Which I'd probably spend on cars & a bigger shop laugh2)