Writing dialogue where characters are talking at the same time?
Hi there, I'm sure this has been asked before but I couldn't find anything from the search bar. My question is: does anyone have some good, creative ideas on how to write two characters saying two different things at the same time? It's a classic comedy trope of visual media that I quite like, and I generally enjoy playing with formatting, so I was thinking maybe having the two lines on the same line of text, side by side. Or maybe overlaying the text, but this seems confusing and rather ugly.
Has anyone here done this or seen this done well, and if so, how?
Thanks in advance.
Edit: clarification, and also I mean this in the context of written fiction (novel or short story)