The UK's Graduate Route visa offers 2 years of work after study (3 for a PhD), but the path to permanent residency is comparatively longer.
In Canada, the post-graduation work permit lasts up to 3 years and the PR pathway is relatively easier. Decide based on your long-term plan.