Choose VoIP when the business expects growth, supports remote teams, operates several locations or needs CRM, contact-center and analytics integrations. IP telephony also makes sense when you want to add numbers and call capacity without installing another physical circuit.
Keeping TDM can still be reasonable for a stable site with a reliable legacy PBX, fixed call volumes and specialized equipment that depends on traditional interfaces. Compare the full cost of ownership: carrier circuits, maintenance, spare hardware, engineering time, software features and the operational impact of future expansion.
For many organizations, the practical answer is a phased hybrid period rather than an immediate replacement.