You have the right to request testing it in the sizer. If, after that, she still insisted, I would have told her that you had necessary Rx and medical devices in your bag and would be forced to deplane if she insisted on you gate-checking
it. I believe that she would have relented under those circumstances, but you can never predict their reactions.