40k, 'low maintenance' and 'best resale' leaves you with only following options;
Civic 09-10, Corolla 09-10, Accord 07-08, Altima 08-09 (Choose anyone from these in good condition and you'll meet above requirements)
yes, if it was 40k in hand and to find something that brings some excitement to drive then choices would've been better and different 
and forget sonata, it's not there in either side!