I don’t think you can compare it like that. The way you have it, you are comparing pre-tax dollars and post-tax dollars. TEA should be reduced by the 20% tax rate to make the two amounts equivalent.
TEA: $1000 x (1- 20%) = $800 (1+10)^10 = $2,074
TDA: $1000 (pre-tax $) =( $1000 (1+10)^10 ) x (1- 20%) = $2,074
This assumes tax rates are the same. If tax rates are changing, then like Mr. Smart & jamespeer said, this analysis changes.