The advantage of a wider opinion aperture is more reliable AF. Pentax AF is optimized for ƒ 2.8 lenses.
Practically everything else posted here is nonsense. Factors like the age of design etc. what you consider sharp, ie edge to edge or centre sharpness makes a huge difference, more tha prime or zoom.
Check out numbers for the 50 1.8
Look at the numbers for the 16-85 at 50mm.
At ƒ8 and 50mm the DA 16-85 is 2502 LW/Ph and 2432 LW/PH on the extreme edge.
At ƒ8 and 50mm the DA 50 1.8 is 2415 LW/PH and 2341 LW/PH on the extreme edge.
I've also done comparisons that suggest the FA 50 macro is better edge to edge than the DFA* 1.4. There's no doubt the more corrected DFA* 50 1.4 creates much smoother out of focus areas, and in many case a nicer looking portrait, for one person. For group images I might go wth the 50 macro.
You can make whatever assumptions you want, but without actual lens testing, you don't know anything. I Have seen many instances especially with the older "Lenses for the way people take pictures, not for the test charts" lenses where the expensive lenses do not match up favourably with modern glass in edge sharpness (but often exceed in centre sharpness.) It all depends on what you're going for. They tend to be more centre sharp, less edge sharp.
But if you want centre sharpness and edge sharpness doesn't matter so much, for portraits etc. then the older, centre sharp lenses may be right up your alley. Not for group portraits but for solo portraits.
The issue is a lot more complicated than a few assumptions and generalizations. Different characteristics at different focal lengths need to be considered. And Prime is better than zoom can only be determined on case by case basis, as demonstrated above. In the case above, zoom is better than prime at ƒ8 (The other lens still might be better at ƒ5.6) . You can't assume, that just because you buy the prime for that focal length, you're getting a better image than you would with zoom.
You also have to consider the design philosophy of the lens, and how much your images might be affected by CA and distortion, and the execution of the design. The DFA* 50 1.4 is designed as a portrait lens, to be sharp wide open and produce excellent out of focus areas. As a landscape lens you might find it isn't quite as good compared to some other options, that were more designed for reduced excellence at smaller ƒ-stops, but to be sharper edge to edge. You have to know what you want to get what you want.
But to answer the main question, ƒ8 is ƒ8. However, the characteristics of a lens shot at ƒ8, in terms of sharpness, edge sharpness, CA and distortion, vary from lens to lens.