if querySelector is the better version of getElementsByX, then what is the better version of

Do you prefer using the getElementsBy... functions or querySelector?
For some reason I prefer querySelector lately
Good suggestion, unfortunately this is a userscript so I can’t use it
I’ll keep that in mind when I’m doing something actually useful