No one is going to come down to a choice of defense contractor vs. Apple. They aren't even located in the same place: defense contractors have no presence in Silicon Valley that I've ever heard of. So you can't even make a choice between the two without considering a cross-country move (military stuff tends to be concentrated on the east coast), though there's a bunch in Phoenix too.
A better comparison would be defense contractor vs. working at some small generic commercial company. They can be located near each other, both are likely to have lousy pay for engineers/programmers, and neither is going to look that great on a resume (actually, depending on what you work on, the defense contractor will probably look better).
In any case, if you think that some small generic commercial company would be a better comparison, then pretend I said that. My point has nothing to do with Apple, it was just a convenient example.