Use a threaded reply to keep a side discussion connected to a specific message, or use a quote reply to bring the original message into the main conversation. Both options are available in channels and DMs.
On a wide AInbox window, the thread opens in a third panel so the original conversation stays visible.
For busy channels, change the chat style from Regular to Force Threads in the channel’s Settings tab to encourage threaded replies.