POSIX/SUS seems to be unambiguous that if you mkdir with the directory already existing at the start, mkdir exits status 1 (and 26.04 Rust uutils does). But a race while mkdir is running is something you can argue about even within the POSIX specifications language, at least as far as I can see.
Interested parties can peruse the relevant SUS page and argue about it: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/mkdir.html
(edited to have the actual URL, thanks frames)