It's not clear, if you are describing proportional behaviour (the duty cycle is set to a value according to voltage error) or integral behaviour (the duty cycle is increased or decreased each time step according to voltage error). But you should try the behaviour of both algorithms in a simulation.
You'll notice that neither a pure P (not reaching the set point) nor I implementation (most likely unstable) will do what you want. Combining both you have already a PI controller that can achieve moderate performance. Adding derivative action can further improve the dynamic behaviour.
In detail, the optimal controller depends on the control system properties. There are control systems, that work well with pure P or I controller.
P.S.: It should be also noted that digital control allows optimized controllers which exactly compensate the control system behaviour, e.g. dead beat controllers. But unfortunately, they are less robust than PID and need exact tuning. So PID is still a good first choice for basic digital controllers.