Renting means becoming a landlord under the Residential Tenancies Act, 2006, with maintenance, tenant screening and vacancy risk to manage, and it can also affect your Canada Revenue Agency principal residence exemption once the home is no longer your primary residence.
Selling avoids that ongoing responsibility and locks in today's value rather than betting on future rent and future price growth, though it also means giving up any further appreciation and the income stream a rental would have produced.
Which one is better depends on whether you want to actively manage a property or convert it to cash and move on. Get your hand-reviewed valuation from Joel Dyck.