While a lot of people say you can dry fire modern center fire semiautos I still like to have something to absorb the energy. I work in the electronics industry. The tubes that hold chips have rubber stoppers to prevent the chips from falling out. A medium hardness rubber.
I take these and cut them to fit the slot in the slide (for the hammer). Takes up some of the energy and also dulls the ringing/vibration, a little less distracting.
Dry firing is a very good practice. Another thing you may want to try is to load your magazines with some dummy rounds mixed with live rounds (at the range). Best to have a number of mags with random patterns. Or have someone else load the mag. Then shoot the gun. When you have a dummy round your gun will not go off. If you have a flinch, or pull the gun off target,then you will see it. Dry firing is good practice but you know the gun is not going to go off. You may react differently when you have live ammo in the mix.
Make sure your dummy rounds are clearly identified as such. I have plastic shaped cartridges and empty cases with bullets reloaded without powder. The cases have holes drilled through them to indicate they are dummy. You do not want any dummy round to look like a live round. If this were the case you could think a live round was a dummy. Real bad if you are not pointing in a safe direction and it does go off when you thought it wouldn't.