A small fraction of the time, perhaps one in ten or twenty, I will press a touchbar button and it will highlight (the background of the button changes from dark grey to light grey for the duration of the touch), but the button will not perform its action. This happens with at least the Play/Pause button and the Lock Screen button, possibly with others that I haven't noticed. It only happens the first time I press the button (or perhaps any touchbar button) after a period of not doing so; once a button has worked it will continue working flawlessly if I repeatedly tap it.
Why does this happen? Is there any logging facility I might engage / reconfigure / utilize to capture the raw events and see what, if anything, is being emitted on the failed presses? How can I prevent the misbehavior, and make the touchbar more reliably responsive to my taps?
PS: This problem is not new and predates Catalina. I encountered it on my first touchbar MBP (around OSX 10.12?), and am now experiencing it on a 2019 13" MBP running OSX 10.15.