I underestimated the negative effect of taking a job that had a tech stack I wasn't passionate about, would have on me personally and professionally. I did learn a lot of valuable lessons from the job I took and by no means was it a write off. I ended up staying there a few years but can’t help wonder how things would be different if I had taken the other job.
You have the right attitude in not wanting to get an unrelated corporate job just for the sake of having a job. So my advice would be to keep looking and if you need work desperately then settling for a temporary job outside of tech(or in) while you continue your search is better than getting tied into the corporate job you don’t want to be doing. It will be much harder to get out of that job and onto the one you really want.
edit: formatting