Ring or email the airline before you go and get a determination.......sure......then get it taken off you at the security. I suspect the security people in most cases are employed by the airport, not the airline.
I agree the approach is inconsistent and better training would go a long way towards helping......but training costs money and everyone these days wants to do more for less, so what suffers?