I know this post is ten years old, but I still wanted to add something to the previous comments. You may practically be able to do what you just described, as your admission to the US, and therefore your legal exit from Canada from an immigration POV, happen at the airport. Customs from neither...