We have Fruit & Knife. Cutting a fruit can be done in two ways: either we keep the fruit still and move the knife, or we hold the knife steady and move the fruit. In both cases, the result is the same.The fruit gets cut. The important action here is not which object moves, but the interaction between the fruit and the knife.
Similarly, in the generation of electricity, it is not necessary that only the conductor moves or only the magnetic field moves. What truly matters is the relative motion between the conductor and the magnetic field. When either of them is moved with respect to the other, an electric current is induced. Just like cutting is the common outcome in the fruit analogy, induction is the common outcome in this case. The conductor and the magnetic field are like the fruit and knife, where both can interchange roles. The essence lies in the relative movement, which creates the required effect. This simple comparison makes it easy to understand how electricity is generated.