Paid 5k deposit and dealer sold my car to another person.

I recently got a OTD deal of a 2024 Mazda CX-30 Selected Sport (Beige color) for 27,500 (USD) and paid 5,000 cash deposit. And told them to pick up a week later because I am not ready to drive the car out that day.

However, dealer told me the car i signed to purchase was sold to anther person because of system malfunction during the expected pick up date. So they told me if I could get a same car with a different color.

I insisted that I need that color (beige), so they told me they will relocate a same car from another location and can be pick up by today.

Nevertheless, they told me i should still wait because the car is not arrive on time.

What should I do? i feel like I got scammed by the dealer. Any advises will be greatly appreciate.

Update: thank you everyone who commented here for thoughts and advises. My dealer’s computer system did get hacked recently, so I think I would wait till the relocate car arrive.

Update 2: My dealer located a new car with the same aspects as I asked, and it’s delivered to me. It not a scam at all, their system got hacked and all document was processed through printed paper. Thanks again for everyone who commented and advice shared.