You're right. I flew many times between Montreal and Pittsburgh and I cleared US Immigration and Customs in Montreal, not in Pittsburgh.