If they use capacitive sensors, then yes, cases and gloves are an issue. But I’ll guess Apple will use strain gauges to detect actual pressure, and neither of these will be a problem.
It's funny how I stumbled upon this article as I was looking up how to restart a frozen iPhone. This made me ask about how are we going to force restart a frozen iPhone 15 pro?