If energy exerted is a function of distance and force, the object would not move in this case. But would energy not still be exerted?
Simplified the example for sake of clarity; but specifically asking with regards to a person doing something like a bicep curl and learning to only squeeze their bicep, rather than tensing their whole arm and fighting against themselves.