While all of that is correct, I feel like you're leaving the most important part unspoken: Nix (and, by extension, NixOS) prevents this by construction, so that you are no longer dependent on somebody using the tool perfectly in every single place to not have this issue.
It's the difference between "you can use this tool safely" and "the tool makes sure that you will use it safely", basically.