This post needs some more details to give a good answer. Is the new role's long term viability more uncertain? Is the company on solid footing? If not, then isn't changing jobs strictly better?
My main questions for you are:
* Are you able to make do without a job for an extended period of time? I assume you don't need a work Visa to stay in country. Do you have enough savings to go for a year without work.
* How confident are you that the new role will last for at least a year?
Imagine you work a the new job for a year, the company folds, and you take a year to find a new job. Then you're no worse off than you were working at your existing job for those two years. So I'd say go for it.
The main factors that would lead me to dissuade you from making this change are: if you can't go without work for an extended period of time (Visa requirements or lack of savings). Or if you're not confident this new role will exist for at least a year.