This changed for 2024. At time of purchase, you can assign the tax credit to the dealer for them to use. There are rules and procedures, t's to cross and i's to dot, which must be done before or at the sale completion, but it's doable unless the dealer isn't set up for it.
Here's the government...