I’ve tried tab groups in safari, which seemed like the perfect feature for me, but I always forget to switch before opening new, unrelated tabs.
Bookmark-all-and-close works pretty well since I’ve literally never gone back and looked at the bookmarks in the 15ish years I’ve been using the approach. Groups would solve a different problem (task-specific tabs get mixed together) but add enough friction that I simply don’t use them.