I understand your concern. Did you want to keep Microsoft 365 or switch fully to Office 2024?
Office 2024 is a one-time purchase, and it works even if you still have Microsoft 365. The subscription does not block you from buying or installing Office 2024. If you do not need Microsoft 365, go to account.microsoft.com, open Services & Subscriptions, and cancel or turn off recurring billing. Then you can buy Office 2024 directly from the Microsoft Store and install it.
Best regards and take care, Arlene D.