Question: do you need a us visa for connecting flights to canada?
Answer: Yes. There is no transit at US airports and you will need to clear both Immigration and Customs at your first point of entry into the US regardless. You will need either an ESTA or a Visa. If you are unable to get either one, suggest you find an alternate route that avoids the US.