That's pretty disappointing that APFS appears to be case-insensitive by default on macOS. Why did they do that? Case-insensitive file systems are a potential security hole.
(I know, I suspect the answer is that it's there in order to not break crappy apps that depend on case-insensitivity. I just wish their developers would have been forced to support case-sensitive file systems.)