My son lives on the border. His wife is Canadian. They go back & forth. She works and lives in Canada. He works & lives in USA. He has been refused entry in Canada despite having proper credentials. The woman on duty looked to be Muslim, since she had on head covering. He’s had to go through extra checks for months after. Other agents were surprised he was flagged, but they still have to go through the extra checks once you are flagged.
Once you're in the system, it's tag, you're it.