At least for the 70s fad diets, there wasn't any sort of long-term benefit like that. When they stopped, people would return to their original weight, or maybe even a little more. Then they would freak out and go back to the diet again -- the infamous "yo-yo dieting."
But I do think it's true that there are two different sensations: hunger, versus wanting food because it's yummy. Maybe some future diet will pair a restrictive diet with some sort of guided meditation helping you discern the different signals your stomach can send you.
Or maybe Mounjaro and friends will make the whole point moot ;-)