When in doubt, look to other artforms to see how they do it.
In this article, playwright Maggie Sulc describes her approach to writing great dialogue and how to apply it to fiction. There’s some great exercises here to get your dialogue to do some of the work for you.