Agreed, but if I decide to sell my car, what I originally paid for it, what I think it's worth, or how much I've invested in repairs, or how much I still owe on it, all has nothing to do with the price I can get.
There are an infinite number of ways you might choose to price your car. If you want it sold in the next 30 minutes, you'll have to settle for what anyone has in their pocket. If you're willing to wait 20 years, you might get a much higher price. Anyone who has bought or sold a used car will know that market price is an average, in reality prices are diverse.
With all that said, my point was to highlight the role of choice in deciding to sell or not. I wouldn't recommend selling your car if you owe more than the market price, and don't have money for a replacement.