

zip is better than tar.gz for some applications though.
notably, individual files can be read from a zip archive without unpacking the whole archive, different than tar.gz files.
tar.gz files are only better if you pack and unpack the whole archive at once, but even then, they don’t have much advantage. the major advantage is that you can pipe the output of tar creation over the network to another computer who decompresses the tar immediately, thus transferring a folder. zip has index at beginning/start, so it requires seek when writing or skip when reading, so it can’t be streamed.
see my comment above; it’s way more efficient to read individual files out of a zip archive.