In 2 years of owning a Model Y:
17,000 miles x 278 wH/mi average efficiency * $0.10/kwh = $472
For an Audi Q5
17,000 miles ÷ 26 MPG * $4.90/gallon = $3,203
The delta for Fuel alone is $2,700 for a low milage car. That ignores transmission fluid, brake fluid, oil changes the time and environmental costs of these. Ignoring all other maintenance costs you're at $27,000 in 10 years. Of course that also ignores the environmental benefits of EVs as well (beyond waste oil, etc)
Comparing prices and costs is very difficult in the current market. Everything more expensive than it should be under normal circumstances and EVs are especially so because of consumer demand, but even now the economics are not what you make them out to be.