7z files can be browsed without decompressing the contents, and tar.xyz archives preserve file system attributes like ownership. They have totally different use cases.
If I want to back up a directory on my drive, I would use tar.xz. But if I want to send some documents to other people, I would use 7z.