I have never seen one person who didn't take the first no, who then proceeded to understand any of the other noes. Them throwing an adult tantrum and promptly leaving is the good ending. Maybe ignoring any answer you don't like isn't brilliant advice in general.
Or maybe you could just try and be a human being, not an overly simplistic social algorithm, and try to understand whether there's actually any realistic chance for that no to become a yes, and how.
Social interactions are complex and this kind of reddit teenager "wisdom" is completely inadequate.
If it's a shy, non-commital "no", with zero followup explaining any reasons they don't want to, then sure maybe another ask is in order.
If it's a solid "no", or they start listing off excuses or reasons after a tepid no... They probably actually don't want it. It COULD be something like anxiety making them say, "no" and stammer out some weak excusable excuses, but that is rare compared to someone who just wants to politely say no.