Kind of feels like everything that needs to be said has been said, but I'll give my opinion anyway, because this is the internet, and also I'm relatively new to this particular community and I want to engage.
I agree with ZimXero in that secret pity systems are not great. If the game is silently pushing things in one direction or another based on your performance, then it's impossible to know if you're getting better or if the game is just getting easier. Part of the fun of challenging games (think Hades) is the learning curve, figuring out how to overcome a challenge.
Optional content is both more and less forgivable. If something is optional but designed to be a challenge (like a super boss), pity systems are pointless. But if it's an optimal minigame that has no relevance, they're more forgivable.
Story content is forgivable if you have things like an adventure mode or new game plus for people who are seeking a bigger challenge, but you want to make the game as accessible as possible.
However, I will weigh in more heavily on the loot side of things, as I'm currently making an RPG with a random loot system with rarities and random drops. And from what I've learned, the best solution is not necessarily altering the odds based on previous drops, but rather creating a failsafe. Altering drop rates can have pretty unintended consequences, take it from someone who's messed with that a lot.
By failsafe, I mean a system where you give the player agency. And honestly, this might apply to the whole topic. My personal solution was to add a "salvage" option when discarding loot. If you discard loot, you gain materials. Get enough materials, and you can craft an item with a rarity of your choice. Go too long without a good drop, you can just make one instead. That way, the player is guaranteed to get something good eventually, but it's not in any way tied to the random chance of loot drops, making sure that when the player DOES get something rare, they know it was because they actually hit that lucky roll.
Anyway, that's just my two cents. Like I said, really nothing that hasn't already been said.
Not a huge fan of pity systems per se, but I find a lot of play in hidden rails that make sure a coin doesn't flip heads 20 times in a row.
Visiting this again. Weirdly enough, I was doing work related to this recently. For my job, I format and upload curriculum for private colleges. This week I was working on a statistic course for data analytics. In that course, I learned about probability with replacement.
Essentially it means that after a possible choice has been randomly selected from a dataset, it's removed from the set, or "replaced." You can have duplicate items in the dataset, and it makes it seem as though you're getting the same result with multiple rolls, but it's actually a separate event in the set. Eventually you'll replace all the undesired rolls until you get the one you want, or until it's the only one left. After the set it depleted, you can repopulate it with new events.
That could actually be an effective pity system, because you will EVENTUALLY get what you want, but you do have to run through the entire dataset before you get it again. Or alternatively, you can display to the player exactly how items are being replaced.
The easiest example of this is a deck of cards. If you draw a 5 of spades, you set it aside. You might get another 5, but you won't get THAT 5 again until it gets shuffled back into the deck. The same could be done for random loot drops, rarity based events, etc.