Selling Mutual Funds / 1099-B

I had two mutual funds from around the year 2000. I transferred them in kind from one company to Fidelity. Each year, I was taxed on dividends and capital gains and kept a record. I sold them in 2021 at Fidelity to purchase different funds. They appeared on my 1099-B form from Fidelity as short and long-term capital gains. I ended up listing the selling of the funds in question when doing my tax return. I'm thinking because paying taxes on them yearly, it was not needed to list and I paid too much in taxes. Do I file an amendment and remove the fund in question from the 1099-B section? What should I do? My dad's CPA friend said you pay taxes each year on mutual funds and not when you sell them. Is that true?