I own both, shoot both, and would pick my 9mils all day. I shoot smaller groups, have more rounds(+4 in some cases), shoot more for same price, and have more ammo availability. .40 is never on the pallets at the gun store for $9.99 a box, Federal 9mm is.
As for the ballistics, well, factor in...