Sekiro was so good at engendering this feeling. The first time you fight Genichiro you will probably die within seconds. The next fight it might take you 20+ tries to beat him. And then the last time you fight him you can basically no-hit him.
IMO, while Genichiro and sword/spear-wielding enemies are mostly fun, non-humanoid & gank bosses suck so bad.
Those bosses felt way too frustrating to me because they force you to unlearn the entire deflect gameplay, turning it into an annoying, slow-paced & somewhat janky fight.