The diversity of experiences that you get from consulting has bigger longer-term value, IMO. You might be more likely to be a senior dev today if you had been working in one tech stack for those years, but I think you'll go farther in your career 5 years or 10 years from now due to the consulting experiences, than if you spent all those years focused on a single tech stack.