Career decisions should always be made in the context of the life of the career. Often times two years of pain can translate into forty years of bliss.
I can’t answer the OP’s question specifically but some general food for thought. To me whatever gets you the fastest to your last job is the route you want to take in a seniority work environment.