Inductor is possibly worse. Inductor is like a spring, it stores energy then releases it, which means a voltage peak.
In fact, that's a problem with input capacitance to begin with: you are just concerned with the initial current peak, but missing the fact that any stray inductance (from wiring) stores significant energy because of that current peak, and if the current decays "too quickly", then a voltage peak is generated. L of wiring + input capacitance forms an oscillating circuit.
Solution is a lossy element, just like a damper in car suspension: resistance. Do not put the resistor with series with the supply, that way you are generating DC voltage drop and losing power for no reason. Instead, put the resistor in series with the capacitor only.
An electrolytic capacitor is a simple and cheap component which already incorporates enough internal resistance such that it's stable in itself with usual amounts of input wiring inductance.
Only add explicit inductance when
1) you have a real power quality or EMC issue you need to solve and which cannot be solved by capacitance and layout,
2) you know what you are doing and can simulate or prototype/measure; you need to scan wide range of frequencies to prove that you did not create a resonance at some unlucky frequency making the circuit worse than what it was before adding the inductor.
See
https://www.analog.com/media/en/technical-documentation/application-notes/an88f.pdf