Ok, so I am in the 10th grade, and Physics is my life, and so I always try to enquire things. We were studying the chapter of Work and Energy during our Physics lecture, and when our lecturer described the derivation of formula to calculate the Potential Energy (U) = mgh, something struck me.
 The derivation goes in this way :- Gravitational Potential Energy, is measured in terms of work done in bringing a body from the ground level to a certain height against the forces of gravity, the work done then gets stored in the form of Potential Energy in the body. Therefore, in our textbook it was given, 
 Work = Force x Displacement
 The least force required to lift the body from the ground will be mg i.e. its mass x acceleration due to gravity(this part is bothering me). Therfore the Force will be mg, while the displacement done by the force will be the height at which it was raised against the forces of gravity that is h. Therefore :-

Total Work Done in lifting the body = mgh (force x displacement)
 Therefore, Potential Energy = mgh.

But isnt it true that the least force required to lift the body should be greater than mg. Since the force of gravity acting on that body too will be mg but in opposite directions and these two forces should cancel each other and the net force will be zero, therefore displacement will be zero and the body will remain in equilibrium. I dont know if this is stupid but can anyone pls answer.