First: isolate the source. Hot water only? Flush your water heater. Replace the magnesium anode rod with an aluminum one. It's a 15-minute job. Your stink will vanish like a bad date. Cold water stinks too? Call a pro or try the aeration method first. It's cheapest.
Second: test your water. You can buy a simple kit online. It checks for sulphur, iron, and pH. Knowing what you're fighting is half the battle. The other half is not smelling like you wrestled a swamp monster.
Third: don't DIY a nuclear solution. Avoid using copper pipes or random chemicals. Sulphur loves to react with metals. You could turn your water into a weird science experiment. And not the cool kind.
Finally, enjoy your new water. When you pour a glass and smell nothing, take a moment. Appreciate the blandness. Or as scientists call it: pure H2O. You've earned this victory. Now go make some coffee. It should actually taste like coffee. Good on you.