IIRC this was causing some exotic problems when deploying docker images based on musl.
To be clear, that's not "wrong", but just different maybe from what docker was expecting.
In any case glibc uses NSS, so what glibc does depends on the configuration. It may well just forward the request to systemd-resolved.