Trading your reliable car for this broken one is a fool's bargain.
fool's bargain
idiomA bad bargain; one that leaves the person accepting it worse off.
The salesman offered a low price for my house, but I knew it was a fool's bargain.
By sacrificing his integrity for a temporary promotion, he entered into a fool's bargain that would eventually cost him his professional reputation.