Progressive overload is the requirement. Variety is a tool that can serve it or get in the way.
Muscle adapts to a stimulus greater than what it is used to. That means the load, the reps, or the quality of effort has to trend upward over time. Without that, no amount of novelty produces growth, because the stimulus never exceeds what has already been adapted to.
Changing exercises constantly makes overload hard to track. If you never repeat a movement you cannot tell whether you are getting stronger at it, and early gains on a new exercise are largely motor learning rather than tissue change.
Variety has real uses: avoiding overuse, covering movement patterns, keeping training tolerable. It is not itself a stimulus.