This is a very stupid question but I'm dumb. Basically, I need to head to SFO but it's cheaper to fly out west when I fly through YYZ where the plan is to fly LGA-YYZ and then YYZ-SFO with AC on separate itineraries. I know that I'll have to clear TSA and US customs again but is this allowed and is this worth the risk of saving hundreds of dollars?