The Refined Hacker News extension for Chrome has a “collapse root” button on each comment that I think does what you want.

+1 for the extension. Been using it since forever on Firefox and Brave.

Link: https://github.com/plibither8/refined-hacker-news