You must consider ESR and ESL of each device. You can choose these from various materials , form factors and values.
Plastic film have lowest ESR and ESL but cost more.
SMD have lower ESL.
Also consider source ESR, track impedance (LCR) and load ESR to determine minimal noise at load.
Normally bulk suppression at source minimizes current loop area near source for reducing track current and losses to load. But if track or path loss of pulsed current is significant, you need large caps at both ends.
Then RF suppression near load is best , either underneath or closest to driver and/or load, depending on effects of slew rate limiting.
If part of closed loop SMPS, follow regulator guidelines for min and max ESR for stability of loop. eg .1 to 1 ohm for some., lower for others.
If ESL of part is not given, they often provide SRF from which LC is related and min. impedance.
If cap is rated by phase angle or leakage @ 50/60Hz, then it is not a low ESR cap but intended for bulk rectifier filtering at low frequencies ,so not recommended.