You are correct that a stable molecule exists at an energy minimum. That's a very important and accurate way to describe the state of the system when atoms are bonded.
However, the reason the system reaches that energy minimum is precisely because of the forces acting between the atoms.
Think of it this way:
- The Energy Landscape: The potential energy between two atoms changes depending on the distance between them. As atoms get closer, attractive forces (electron-nucleus attractions) initially dominate, causing the energy to decrease (creating the "well").
- The Minimum: The energy reaches a minimum at a specific internuclear distance (the equilibrium bond length). At this exact distance, the attractive and repulsive forces (nucleus-nucleus and electron-electron repulsions) are perfectly balanced. The net force is zero at the minimum.
- Beyond the Minimum: If you try to push the atoms closer than this minimum distance, strong repulsive forces dominate, causing the energy to increase sharply. If you try to pull them further apart, the attractive forces become weaker, and the energy increases towards zero (the energy of separated atoms).
So, while the stable state is an energy minimum, that minimum is a direct consequence of the electromagnetic forces (both attractive and repulsive) acting between the charged particles within the atoms.
You can't have a potential energy minimum like this without the presence of forces that create the potential energy landscape. The force (F) is related to the potential energy (U) by F = -dU/dr (in one dimension). The energy minimum occurs where dU/dr = 0, meaning the net force is zero at that point. But forces are definitely acting at all other distances, driving the system towards that minimum.
Therefore, it's more accurate to say: The electromagnetic force is what creates the potential energy minimum, and the molecule exists stably at this minimum where the net force is zero due to the balance of attractive and repulsive forces.
The energy minimum is the description of the stable state, but the force is the mechanism that causes and maintains that state. You need the force to have the energy minimum in the first place.