When it comes to the military, top gun wins. A specialized gun will top a non-specialized one in a given combat situation, all else being equal. Of course, the F-35 will be a great general purpose weapon against far less advanced targets, but if they are pitted against their Russian and Chinese counterparts, I don't believe they will fare all that great.