Iirc, closing an account impacts your credit not because you cancelled your account, but because it impacts your debt/credit ratio.
You have 2 credit cards. Card A has a 10k credit and 2k balance. Card B has 10k credit and 0 balance.
So your ratio is 2k/20k or 10%.
If you cancel card B, your credit line is now 2k/10k, which is 20%. This increases your credit utilization, which impacts your score.
Opening and closing a bunch of cards without any balance shouldn’t have a significant impact on your score, maybe a few points.
Hard inquiries can be bad but most credit cards use soft inquiries nowadays anyway
Hear me out