If you applied inside Canada, it is not safe to leave Canada so many people do recommend to wait until you receive PR card (can apply an open work permit).
If you applied outside Canada, you can leave whenever you want (can not apply an open work permit).
***These are the different between...