Running through some perhaps faulty mathematical models, I'm going to take a contrarian approach to most on this forum.
In many cases (especially for people busy with other work or family life they need time to focus on), it makes a lot more sense in 2023 to buy a new car. In the OP's case, if changing a car isn't immediately needed, then I'd probably wait for the car market to gain some sanity. But in general, if you find yourself without a car, and you need to get one now, buying new could actually make more sense.
Used car prices are at all-time highs, and this means that new car depreciation is at all-time lows. If you buy a new car, hold it for 3-5 years (for however long it's on warranty), it's very likely that you could then sell that car for just a few thousand dollars less than you paid. This means that for around 1-2 thousand per year (plus insurance) you can have a super reliable vehicle without needing to pay anything for repairs.
On the flip side, let's say you try to save a few thousand dollars by buying a used car. You might have to shell out an additional few thousand in repairs which are often more expensive now due to car complexity and electronics/computers (meaning you're paying almost the same as new), but if you try to resell it then you'll still lose a few thousand dollars on the resale.
This means that, due to slow/low levels of depreciation in our modern times, if you buy new you really only pay for the depreciation. If you buy used you pay for both the repairs (which could be significant, especially if you live in a country/area where rust damage is common) and the depreciation, which means you might end up paying more to drive a worse quality car that causes you more headaches, time, and energy.