And take the escape key off the TouchBar. I hit it all the time by accident. I really wanted to give the TouchBar a fair shake but after two months I still think it’s beyond useless.
I feel your pain, it's my number one problem with the Touch Bar, the second being that it's almost entirely useless in its default mode.
I have two solutions for you, though: firstly, download BetterTouchTool[1] and install the GoldenChaosBTT[2] preset. It's the killer app for the Touch Bar, it turns it into a genuinely useful feature that you'll find yourself using all the time, and BTT in general is an incredibly powerful tool for customising the way you interact with your Mac.
Secondly, switching Caps Lock to the Esc key[3] has been one of the biggest productivity improvements I've made in the last decade, seriously. I wish I'd done it sooner. I've made the switch on every machine I use, even the ones without a Touch Bar.
Thanks for the tip. I got BTT and now I only have brightness and volume sliders on the Touch Bar and no escape. Much better. Will probably do some customization but it’s already a big improvement.