Where I do support batteries, in a car, is an an assist to help smooth out where more gas might be burned as usual, such as hills or from a stand still at a light.
However, batteries are not able to replace hydrocarbons.
You described a hybrid car like a Prius. They’ve been around since 1997 (Toyota Prius in Japan in 1997, followed by the Honda Insight in 1999). The nice thing about hybrid is you convert your kinetic energy into potential energy (in the battery) every time you brake. Of course, you have the higher capital cost of two power plants in your car, higher maintenance costs, and increased weight which hurts mileage.