Making an account inactive will only hide it from the Chart of Accounts (COA) and other places where you choose accounts. While transactions under it will remain on your reports and tax forms. This is to keep accurate entries in your books.
If you need to have a single representation in your financial reports, you can activate it. Then, merge those two accounts. This will keep your COA organized. Let me show you how:
Click the Gear ⚙️ icon at the right top.
Select Chart of Accounts under Your Company.
Go to the account you keep.
Click the View register drop-down, then select Edit.
Mark the Is sub-account box, then select the parent account.