The good thing about getaddrinfo: it works and on all platforms.
The bad things: not the full response details like the TTL (remember it is not just for #DNS), no way to control resolution from the application (some may say it is a good thing)
And it is only for A/AAAA records. How to use SVCB?
But also, Firefox (the speaker works for Mozilla) has a DoH client, DoH being easier / better than getaddrinfo for a Web browser.