I chose to compare a 2016 Civic with ~60k miles to the 2023 Bolt with ~0 miles. The market price for the Civic is ~18k [0], and the lowest for which you can realistically get a Bolt is the EUV for ~32k [1]. I also considered 12.5k in state and federal tax breaks, which decrease the purchase price of the Bolt to 19.5k.
Here is a cumulative vehicle cost calculator https://afdc.energy.gov/calc/ It makes a graph, from which we can look at the value for year 10.
Add a 2023 Bolt, and a 2016 Civic. Change the price of the Bolt to $19.5k, and the Civic to 18k. Choose your state for energy prices. You may also change the gas price or the number of miles you drive. Click Get Results.
My results are Civic: 52k, and Bolt: 45k. That's assuming that the ratio between gas and energy prices doesn't change in the next ten years.
[0]: The site itself pulls a value of 18,640 from somewhere, but my 18k value came from online listings. My wife looked for these, and I think she mainly used KBB.
[1]: The Bolt EV cannot be purchased, only the EUV. I called about 20 dealerships. After 3 weeks I had gotten several offers to buy vehicles for 32k and higher, but none lower.