I use one that plugs directly into the ports; I found the dangly ones to be a bit unpredictable unless my laptop was on the desk rather than a stand and in the end I got a short that blew the power adapter on the motherboard. Apple replaced it but it was a pain in the arse.
I've been using this one everywhere, and it's excellent... always detects keyboard, mouse, HDMI, has pass-through USB-C charging... not too ugly.
https://satechi.net/collections/usb-type-c/products/satechi-aluminum-multi-port-adapter-4k
Not the cheapest, but works, is reliable, full video resolution, full USB-C speeds... just works.