I'll restate that I think you should file a complaint.
Afterall, I doubt it's the lawful normal business person that is smuggling guns and drugs into Canada... you know, people with actually something to lose.
Instead, they should focus their efforts on actual criminals who are breaking laws.
It's the same concept as TSA strip searching little white grandmothers at the airport, and letting the arabs walk on through with minimal investigation because of the PC issues in our world... despite the fact that arabs have been responsible for some 99% of airline terrorism in history...
Profiling is a dirty word in the US, but used effectively worldwide to identify and isolate real threats versus non-threats in a world of limited resources to defend against crime and terrorism.
While this Canadian border guard is harassing you, it's quite possible he's wasting resources better spent on real suspicious people doing actual illegal stuff...
So if you take that angle, you have a great argument IMO. Limited resources wasted on people like you actually lesson safety.