Control of the balance of torque or speed between pumps or motors