Happened to me, they actually didn’t know about my pending CR1. But I mentioned it as the customs when they asked my reason to stay 2 months, i got pulled aside and spend 1,5 hour in the booth explaining and trying to proof my intention to return home. Flight tickets, with my wife and son also returning was sufficient but I didn’t have hers at hand which caused the delay
this was in Detroit for my layover.
whenever I fly through Atlanta, I’ve never had any issue.
I’m not sure if just not mentioning it unless they do is the better answer, but I wouldn’t lie and risk the visa.