Yes, but there is no incentive for Person A to choose a brand new Corolla when it's $22K and the alternative is $15K. The value depreciation when they sell to person B will be lower than the Corolla, especially when factoring the fuel savings in.
Because it's cheaper to buy and cheaper to drive.
Let's start with your example (12 years, 130K miles, 50% depreciation). Let's assume that the EV depreciates much more (80%):
Corolla value depreciation = $11K
BYD Value depreciation: $12K
From a purely financial perspective, it doesn't mean to invest $22K instead of $15K for a $1K gain after 12 years.
Now the calculation above does not take the energy costs into account [1]:
Petrol cost @ 130K miles = $20K
Electric cost @ 130K miles = $4.5K
[1] https://avt.inl.gov/sites/default/files/pdf/fsev/costs.pdf
"Hey I know Corollas last a while, and wtf is this weird-ass company I've never heard of? I'm sticking with Toyota."
^ Incentive enough.