Section 179 implications? Car bought in Dec 2023 and being replaced by dealer due to an issue a few days later in Jan 2024-

I bought a car Dec 2023 under a Business for business use but just a few days later in Jan 2024 discovered issues and took it back to the dealer and likely be getting  another car as a replacement, the car year and model is the same but the Vin# will change, does that affect or wipe off my Section 179 for last year 2023?

What can I do so I can maintain continuity with Section 179 and dont loose out the entire tax gain from 2023 which incidentally I didnt even get a chance to file tax with yet?