Now this question is very tricky to answer, coz you can have two conflicting opinions.
First, we'll almost always be a "defending force" and the most powerful weapon a defending force has is the strength ratio of 1:3. Moreover be it Nagorno Karabakh or Ukraine we have seen how tanks fair against asymmetric threats like drones and ATGMs. And to further complicate things out of some 5150 or so tanks we have, 5000 are susceptible to suffer catastrophic failure if they are engaged. So from this logic it's very futile being a defensive force to maintain a large tank fleet until and unless we have some very cutting edge survival solution.
Second, as of now we have no other platform except a tank that can be so mobile, work even after taking a serious beating, fire a large calibre gun with such an accuracy, defeat most of the current Active Protection Systems by using APFSDS, fire missiles like tank destroyers, act as a cover for dismounted infantry, can form a defence in captured territory......so what'll we do if there's no tank?
So I've given you both the argument, now you decide