This is more like bringing the pepper across and then quickly swallowing it when they ask you to look at it.

Or emptying your bottle of water when the TSA found it on the XRAY. Unlike the pepper he's actually allowed to have that data on his phone both sides of the border.

which also would be fine?

Hit and miss, depending on the security guy. Some had me pour it out.