Selling a car and buying a new car of equal value?

Hello guys, I’m not very happy with my car, because I have to go to the workshop all the time and now I’ve also got one in. I probably caught a Monday car, constantly trouble with it and now also bad luck due to the accident. Therefore I play with the thought to sell and with the proceeds from it to buy a new car. But now I’m not sure if it’s such a good idea, because my thoughts only come out of the emotions. To buy an equivalent car will de r proceeds are certainly not high enough and I have to put money in again or I will only get a inferior car if I only use the proceeds. I could of course also give the old one in payment when buying, but that will probably come out at the same time. Maybe someone has already been in the situation and has a advice. Stupid situation just. Would one side like to get rid of it, on the other hand I have expenses again.