First, Shedinja is a Bug/Ghost type with 1/90/45/30/30/40 - 236 stats. These are among the worst in the game. Like, the whole game, not just BH. 90 attack... barely passable for BH.
Defensive Utility
With Sturdy, Shedinja can take an infinite amount of direct damage in most cases and survive. This is pretty darn impressive and makes it an incredibly good check to most direct damage. But, it is married to its ability to do so, so there is zero surprise factor as a result.
It also has an incredible number of weaknesses that it can kinda respond to but otherwise demands absolute support to even function.
-Mold Breaker Moves, like Photon Geyser, OHKO it unless it has a Focus Sash. It can only take one hit unless it has Recycle and doesn't get Knocked Off or Tricked.
-Hazards. Using Shedinja mandates strong hazard control, ideally Defog. If all hazard control is removed or unable to do their job, then Shedinja is effectively KOed before it even enters battle. Shedinja cannot control hazards on its own except via Magic Coat. Strong pressure on spinners/defoggers can effectively lock Shedinja out of a match if the Shed user doesn't want to risk losing the spinner/defogger.
--EVEN WITH hazard control, a Shedinja team is extremely susceptible to shuffling with hazards up as any Whirlwind or Dragon Tail can switch Shedinja into hazards, KOing it instantly even if the Defoggers are otherwise able to do their job uncontested 100% of the time.
-Mold Breaker. Any direct damage move will KO Shedinja, except Normal moves and aforementioned Focus Sash. Focus Sash still loses to multi-hit Mold Breaker moves, like Gear Grind and Bonermerang. A faster Pursuit is a guaranteed KO on Shedinja if it does not have a Sash.
-Poison/Burn. Instantly KO Shedinja at the end of the turn if it starts the round with the status. It can dodge the moves with a Lum Berry, once or multiple with Recycle, and some can be avoided with Magic Coat. If it gets statused, it is doomed unless it manages to swap out and has cleric support. Tricking it a status orb is effectively a guaranteed KO.
-Spiky Shield, Baneful Bunker, Rocky Helmet, Iron Barbs/Rough Skin. Shedinja cannot safely make contact moves without Protective Pads provided it is not removed.
-Sand/Hail. Shedinja cannot be on the field at the end of the turn or it will KO instantly without Safety Goggles. A good Sand/Hail team can effectively keep a Goggleless Shedinja off the field indefinitely.
-Partial Trapping. Moves like Infestation will KO Shedinja at the end of the turn, although these can be dodged with a Red Card.
-Ability removal will instantly delete all defensive capabilities Shedinja even has. It can outslow Core Enforcer, however.
-If it somehow winds up with a Life Orb, it cannot attack. This is a really rare situation though.
-Other indirect damage. Like Leech Seed, Curse, etc. Shedinja can block some of these with Magic Coat, but otherwise it has no defense against them.
My thoughts
These spoilers ARE NOT objective and are my opinion as a result of above.
In my experience and observation, many of these techniques are not used frequently. Moldy moves are usually on sweepers only, Mold Breaker itself is pretty uncommon and well telegraphed and rarely runs Pursuit or a multi-hit move to trivially bypass Shedinja. Poison/Burn mostly comes from chancy moves these days, like Scald, and even then those moves are often swapped for Revelation Dance, which is purely ran for Normalgar.
Spiky/Baneful see some use, but are a bit telegraphed/played around. The others... not so much. Rocky might even be a little underrated right now (even by myself) since it'd be good for chipping all the U-Turning. Taking an Endeavor to the face is not ideal, true, but there are numerous ways to mitigate it, like Prankster with Recover/Destiny Bond or putting the helmet on a Regenerator, etc.
Weather is rare, people have abandoned partial trapping for Anchor Shot, people have abandoned other ability removal for Core Enforcer, and there's not a lot of indirect damage being run in favor for U-Turn chipping.
IMO, there's pleeeeenty of tools for wrecking Shedinja that also have (lots of) utility outside of that match-up are going untouched (although Simple Beam might be meh with Contrary banned) or seeing little use in favor for a few selection options. Swapping things around, like permanent trapping for partial + chip or a low damage Core Enforcer for Gastro Acid could easily expose Shedinja and make the meta a more toxic place for it to exist in without really harming the team's capabilities.
Shedinja is a cyclical Pokemon historically. Shedinja is strong > Shedinja checks rise > Shedinja's usage falls > Shedinja checks fall > Shedinja comes back. Gen VII has been unusual in that the cycle has been very slow, to the point that S/M basically started at the first point and it took the entire generation to make a full circle.
But seriously...
Infestation does a bunch of damage and traps a target long enough to do whatever you please. It replaces a low damage Anchor Shot trivially. If they U-Turn out of your chip, then your Anchor Shot wasn't doing much better unless you had a good STAB on it. Unless you're trying to trap and stall out Imposter, you usually won't be holding the opponent in place for more than 5 turns anyway.
Rocky Helmet and Iron Barbs can chip the heck out of all the U-Turners and also punish Spectral users. Put it on something bulky, or a Regenerator, and punish every turn. Heck, run the item and the ability and they're taking 25% damage every time they try to slow pivot, provided you can avoid Trick/Knock Off. That's nothing to sneeze at. It also breaks Sashes to boot. This really bears some exploration with how common contact utility moves are.
Weather... okay, you kinda got to build around that one. But if you can fit Sand somewhere, as a few people do, you can really abuse Shore Up.
Will-O-Wisp, Toxic, and Toxic Thread are not popular moves and have some problems with Bounce (which, let's be honest, is not THAT common), but are a lot better than gambling on a Scald or whatever if you need that status. I mean, do you REALLY need the damage from Sacred Fire on Mega-Audino? (Yes, if you're reading this, you know who you are.) Also, Toxic Spikes exist too!
...Corrosive Toxic is hilarious, by the way, and you should try it sometime, even if not on a serious team.
Core Enforcer is nice, but a lot of the utility users do jack squat damage with it. Entrainment, Skill Swap, Worry Seed, and others exist as other options. Yes, Taunt. Yes, Magic Bounce. But A) Fairies. And B) You don't have to worry about speed undercreep so much. It takes a little prediction to use on Shedinja safely, but unlike Core, it'll reliably work on Shedinja at least!
Worth noting a Mold Breaker hazard setting is the antithesis of Shedinja. You can even double down on this and run it on Solgaleo or Duskmane to take advantage of moldy Gear Grind, which OHKOs both Sash Shedinja AND cheeky Sash Diancies. And it also does the same damage as Sunsteel, so you don't lose out. Or go Gengar and have something that can switch into Shed.
Whirlwind, Circle Throw and Dragon Tail are really strong, dickish anti-momentum and pivot moves. They slow U-Turn? You go slower and jack up their pivot and potentially rack up double the hazard damage per turn. Heck, if you're running Whirlwind and you keep your side clear of hazards, you can basically pivot for free if they switch their Magic Bouncer in, albeit a little randomly. Just make sure nobody shares any major weaknesses with your Whirlwinder if you try that.
But seriously, explore your options! We've had these tools for multiple generations and they're largely not any worse than they were! ...except weather because Gen V to Gen VI and Simple Beam because Contrary ban.
...either way, if you were to remove Sturdy, Shedinja would lose all of its defensive utility and become little more than a high-risk, low tier gimmick. It'd effectively soft-ban it from the meta in any serious circle. I'd rather sooner support a Shed ban than a Sturdy ban, direct or complex, since it'd have about the same effect on serious play.
Offensive Utility
Refresher: 90/45 offenses and Bug/Ghost STABs. The STAB combo ain't bad since the only natural wall in the entire meta is Mega-Audino. But the actual stats... they exist. That's it. 90 was kinda sorta passable in 510 EV settings due to the drastically lower bulk of the meta. But like... 45 Sp.A ain't doing jack. 90 can chip pretty decent with the STABs, and hurt some stuff like MMY, but it's a far, far cry from a sweeper or a wall breaker.
Shedinja's offenses have a few other good points. The first of which is Shell Smash. It doesn't care about the defense drops at all and doesn't need a Sash to not care. It can Smash to its heart's content with no fear of suddenly being OHKOed by a stray Weedle's Banded Bug Bite.
It gets STAB U-Turn and STAB Spectral Thief, two very nice utility moves.
Shedinja also usually beats Imposter, which is cool.
The other point is its friggin' amazing synergy with Endeavor. Endeavor + priority allow it to 2HKO almost the entire meta, which is just disgusting. This is why Ghosts are near mandatory on all teams
However, the downsides are aplenty.
Shedinja cannot use Belly Drum, cannot use Life Orb (more than once), it cannot run any offensive ability, it cannot use any recoil moves.
Spiky and Baneful are real problems without the right items. As are Rocky Helmet and Iron Skin. Flame Body, Aftermath, and other junk are too, but those are super rare. Like... low ladder exclusive rare.
Shedinja must choose between two priority moves: Extreme Speed and Ice Shard. The former has low PP and contact issues and does nothing to Ghosts. Ice Shard has much lower power, which is problematic. Like... Endeavor/Ice Shedinja cannot KO Poison Heal Gigas, for example. Ice Shard can also be outsped by Prankster Recover.
Shedinja cannot break most dual Regnerator cores, as they can just switch back and forth until Sheddy takes its ball and goes home.
Some Fur Coat users can be a problem too, tanking an Ice Shard or even an Extreme Speed with just 7% of its HP.
Shedinja struggles with Substitutes.
Endeavor also has low PP, making it stallable. It's also a Normal move, so it's blocked by Ghosts, Imposters switching in, and, ironically, Shedinja. Heck, Shedinja tends to wall Shedinja. It can avoid this with Foresight, but that can be bounced, believe it or not.
Shedinja also requires a copious amount of scouting to use safely, lest it just suddenly die unexpectedly while trying to do its job. It also must be slow pivoted in if the enemy moveset is not known well enough lest the Shed user be willing to take a risk.
Shed pretty much must run Endeavor + priority to have offensive impact. If it only uses Endeavor, it'll likely be outsped and the damage healed off or the opponent will use a Shedinja-killing move. If it only uses priority, its damage will be straight up garbage and useless. Shedinja needs a third move to KO Dazzling users.
It cannot run Moldy Moves itself, because then it goes from beating Imposter to losing to Imposter, hard.
Heck, if you wanna look clever, you can just Imprison Shedinja easily since it's super predictable.
...also, minor, but Shedinja is the only Pokemon in the entire game that can only Struggle once. Literally the entire rest of the game can do so up to 5 times from full HP/correct HP EVs/IVs.
My Thoughts
I think this is the part of Shedinja that's more well prepared for and exerts a hell of a lot more pressure on team building. It's pretty easy to work in a "this KOs Shed" onto your team while focusing on other priorities. It's way, way, way harder to work around Endeavor + Priority if you don't have Giratina or Gengar on your team. Imposter eases it, but that's usually a lose match-up.
Honestly, there's not as much to be said here as the defensive answers to Shed's offensive prowress are used much more consistently. Pressure, Grudge, and Spite are the only real exceptions I can think of, but those are niche and you need to build teams around them usually.
If you take away its offensive utility, Shedinja becomes a hell of a lot easier to plan around. Yeah, it'll still be a pain in the butt to kill, but you could at least reliably resort to PP stall without fear of the 2HKO if all else fails. And you'd also have more freedom to run Shed counters too, since they wouldn't need to be expected to survive Endeavor.
Hence why I feel, if anything is done, complex is the best answer. It's, like I said, like the previous complex ban of Comatose + Sleep Talk. Shedinja isn't as toxic or overbearing, sure, but it's in a very similar boat. Shedinja without Endeavor is annoying, but infinitely more manageable. Endeavor without Shedinja is... yeah, it's a thing. Seperate them and neither are a problem.
Yes, I know Smogon policy and blah blah blah, but compex bans DO happen on occasion. Yes, some flounder eventually, like Baton Pass in standard. But some are successful. For us, Comatalk is a big win and works very well. Either way, I'm not a big fan of complex myself and usually oppose them, so keep in mind I don't suggest one lightly and only do so if I feel it were the best course of action to take if a suspect were to come up.
And, IMO, I'm probably gonna get the angry faces from the usual group for this, if they didn't do so the moment I posted, but in a metagame with lots of weird edge cases and synergies that straight up don't exist elsewhere, we should be a little open to complex at least. Like... they should still be avoided whenever possible. But we shouldn't use a sledgehammer ban when a scalpel will do just because scalpels are bad.
...besides, a lot of you guys were straight face advocating for stuff like a V-Create ban instead of Primal Groudon or Photon Geyser instead Psychic Terrain or a few specific moves instead of Contrary. I think there were calls for Water Spout instead of Water Bubble or only certain CFZs instead of all CFZs, but it's been a while. Either way, is Endeavor really any different than those?
Yes, I know they failed but... come on, there was actually a lot of support for some of those.
Support Utility
Shedinja has shown to be able to run support sets reasonably well in the past. Most of these never became mainstream, like Recycle Red Card hazard shuffling when Infestation/Magma Storm were the only common anti-shed options. Probably the most successful and popular use was Baton Pass Shedinja, in which it used a boosting move on the opponent's switch, like Shift Gear, and then passed to a check/counter to wall break or sweep with. A variation of this was to do something like set Tail Wind, Sunny Day, Trick Room or othersuch on the switch, but this was a lot less common.
However, that's basically the extent. The Core Enforcer bug fix/nerf meant it can't really utilize that super well anymore since most of its targets want to switch anyway. A lot of other support moves, like hazards, Defog, etc. are putting it on a lot of danger from Magic Bounce/Coat or it just can't run them period. Knock Off and Spectral Thief run the risk of getting bopped by residual damage.
Beyond that... I dunno, Shedinja's support utility ebbs and wanes. And, currently, it's very rare. I don't have any thoughts here.