One last (conflicting) note, is that the small business capital gains exemption on sale of shares in a Canadian owned business is a godsend.
https://financialpost.com/entrepreneur/plan-to-take-full-adv...
tl;Dr; 0% tax rate on selling shares up to $800,000 (+increasing with inflation). Terms and conditions apply - talk to an accountant.