+ self cleaning sensor, 3 User defined modes (which I use all the time but seldom read about), better menu system
Add a shutter life expectancy of 100K for the 40D against 50K for the 20D. That combined with the expectation that a used 20D, being an older model, might have more shutter...