The pirate scene occasionally hits this as well (copies of the film "Con Air" which would be named "Con.Air.<foo>" by convention were instead named "Con_.Air" or "Con_Air" etc. All thanks to the legacy CON device.
I learned about this when I added cloning the Linux kernel repository to an integration test suite for a cross-platform filesystem. I had to use another project because of that file :)
You run into different, but similar, issues cloning Linux on macOS as well, since HFS+ is case-insensitive by default (and looks like the same is true of APFS), but the Linux source has filenames that differ only in case (don't ask me why).