Pursuing a master's degree vs. staying in industry — what would you do?

Pursuing a master's degree vs. staying in industry — what would you do? I'm a software engineer with about five years of experience, and I'm debating whether to get a master's in CS or keep working. Is a graduate degree valuable, or does on‑the‑job experience matter more? For those who paused their careers for grad school, was it worth the time and money? Did it help with career growth or immigra…