In 5 years, you may make lot more money than now and whatever the amount you may lose in resale value should be neglible. Afterall you are moving from a 1.6 Mil budget to 3.5 - 4 Mil budget right now..
My take is that you should buy the Lancer, if that fits your other requirments of the desired vehicle (handling, fuel etc). When I was buying the Lancer Ex sometime back, there were number of cars that owners who couldnt sell for months. Some of them were "Used and abused by doctors/judges/professionals" or the owner expected more money than what it would cost to buy a brand new car..
Well maintained car will be sold within a reasonable amount of time..