This question and answer (GZip doesn't produce the same compressed result on macOS vs Linux) are pretty clearly the GZIP doesn't meet the bill. No argument there.
But, I think the real question lurking behind that question is: Are there any compression algorithm that deterministically create the same binary file on Linux and Mac?
cat
? 0% compression is abysmal, though. probably not worth bothering with. – cas Jul 04 '22 at 02:27