Like others have said, it all depends.
I only average 12,600 miles every THREE years.
I live in CA, which has some of the most expensive electricity in the Nation, and is also prime for solar due to how much sun we get. Pre covid, I drove 18k miles a year. My wife, who is no longer working, has a 2019 BMW X3, whose lease expires in Jan of 2022 (3 months from now). Her X3 has 5800 miles on it (over a 3 year period!).... lol.
Since that car is leased, and 10k miles a year included in that payment, I originally planned on splitting driving her car and mine to work, to lower the miles on my car and use miles on hers. When I started driving my model 3 performance, however, I liked it so much I basically stopped driving her car unless I had to for some reason or other.
I was going to give it back to BMW at the end of its lease and get a model Y for her, but a couple things are stopping me from doing that.
One is, BMWs normally are not worth their residual at lease end, but due to the used car market right now and the limited miles on that car, it actually is worth more than its residual. Its also not "easy" to get a model Y, what with the still in existence waiting list etc. Her BMW is basically new, and the "savings over gas" is minimal for that car, simply because she really only drives around town.
With my existing solar, I am basically "net zero" on true up at the end of a 12 month period (which means I am using all of the electricity I generate, but dont really have surplus at the end of the year). I am also under a version of net metering that doesnt exist any longer, and adding any solar would drastically change how my billing works currently. My grandfathering into the old plans would be gone.
All that to say, buying a model Y would simply be more electricity use from the utility for me, since I am already using my solar. Given CA electricity rates, and the fact we dont drive that car much on a yearly basis, there is very little "savings" to switching her car to a model Y, and she likes her current BMW (but was "open" to a model Y if I thought it was that much better for us as a household).
All that to say, for each family, how much solar, etc etc, all "depends" on a number of actors....
(looking back at this, boy am I rambling... but I guess I will hit "post reply" anyway, lol.)