I refer only only recent prosumer full frame cameras (with sensors with more than 30 megapixels) and full frame lenses.
In general, for similarly priced prime and zoom from a reputable maker, the prime (there are toasters out there) will most times show a better behavior than zooms. This is just because a zoom is optically more complex and cost more to design and make than a prime.
If we talk about top of the line prime vs a top of the line zoom, unless the prime is a toaster (and there are a few), it will behave better than the zoom. This is specially true when you get to flexibility of a wider f-stop range that delivers you superb quality, their generally lower overall weight and equal or lower price than a top of the line zoom that includes that focal length. Note that holds true most of the time, with the exception of a few very exotic primes (makers and models) or the few that have extremely wide aperture (f-stops lower than 1,0) that can cost two arms and a leg.
The same principle holds as for regular zooms, making a exceptional zoom is more complex and costly both in design and optics than a prime, and even the best zoom have trade off both quality at certain f-stops and wider apertures for its flexibility in focal range.
All that said, depending of the type of photography, the focal flexibility of a zoom is a must. Outweighing the higher weight, the lower flexibility in the range of f-stops, and even a higher price.
By the way, many users don’t know that you have to individually calibrate the focus of each of your lenses to each of your camera bodies.
Lenses and bodies are built with tolerances. If you don’t calibrate each of them you will usually suffer for front or back focusing that becomes very apparent when shutting almost wide open.
People see these focusing errors, specially the front one, and confuses it with lack of sharpness. When it is in fact a lack of focus. It is produced when the camera think is focusing perfectly but the body and lens are actually not focusing where the camera and the user thinks it’s. And the result is a photo that is out of focus.
Today most, if not all, Pro Bodies have a way to do the necessary adjustments to calibrate each individual lens by serial number.