Research shows us statistical trends but what we care about most is what works for us. That can be answered only by an individual. In my case, I went from "hurray! work from home!" at the start of Covid lock-downs, to "I miss the white-board discussions at office". Fortunately, the tech industry is now large and diverse enough that you can find work that suites your style.