Deductions & credits

I believe the EV credit comes off first (see the instructions for the limitation worksheet.)  https://www.irs.gov/instructions/i5695

 

If you don't owe tax after the EV credit, the unused solar credit will carry forward.