Tough choice. The 2002 has the better engine, the 2009 is the better car.
The 4.0L V6 in the '09 is not only gutless, but it's noisy and rough. That was a truck engine the dropped into the Mustang as filler because they didn't have anything suitable at the time.
It's really going to depend on price and mileage of both?