Example; the Legend of Zelda: BotW and TotK weapon degradation system. At first I was annoyed at it, but once I stopped caring about my “favorite weapon” I really started to enjoy the system. I think it lends really well to the sandbox nature of the game and it itches that resourcefulness nature inside me.
I definitely know what you mean about those areas in 2. All four Lord Soul runbacks in DS1 make me feel a similar way. Though if any of these areas in either game were easy it wouldn’t feel so dang good to overcome them :)