In this video, prof. Sam Ben-Yaakov explains and model impact of parasitics to capacitor charging.
Note that an inductance at the input to a closed loop switch mode system may induce instability.
See:
further reads:
How to Choose BUS Capacitors for EV Inverters
Source:
Sam Ben-Yaakov