This is like comparing apples and oranges.

JAMstack is a way to build a website using different technologies. It’s up to developer to find the best solution for specific problem.

WordPress is a monolithic CMS which tries to do too many things of which many are done poorly.