It’s called Paruresis or Pee Shy which I learned from Reddit. There’s plenty of talk if you know what to search for. It happens to my kids sometimes so I’ve had to coach them through it.
Go in the stall?
Feels embarrassing to always go in the stall when I obviously only need to pee.
Grab some granola bars from the snack counter, bring them into the stall, drop them into the toilet so your coworkers won't think anything's amiss
Make sure to grab some coffee grounds too.
I mean I can only speak for myself, but I don't look at another man going into a bathroom and stall and think "wait a minute.... is he NOT taking a shit?" then start getting my stopwatch out and cross-referencing that with studies of average defecation times.
Surely no one really cares.
Experiencing social anxiety has very little to do with what other people _actually_ think about what you're doing.
Yeah I know but it doesn't hurt to be reminded now and again.
There is a 100% chance that nobody will notice or care.