I realize you are trying to use a United certificate, but if you can get on AC metal from SFO-YYZ then your bag will be checked through to YYT and you won't have to pick it up in YYZ. If you are flying UA metal, you will need to wait for it to come out of the carousel in YYZ and clear customs with it.