Batteries can be recycled.

Current lithium batteries are not the best ecologically, but they
are not the future.
I know it's hard to envision if not in the field, but we will see batteries that charge faster than you can fill a tank, much longer cycle life, and charging that can happen on the move in an induction charging lane, not only at a station (some of these innovations may be 40-50yrs off, but the tech will surpass ICE much sooner).
Solar panels on the car? Not so much. Photovoltaic paint.