The tank may not be completely obsolete and indeed properly used like the US did and like Russia sadly probably re-learned it is a very useful tool.
More defensive automation will put even that "properly used" to the test. I think we've just scratched the surface of what AI can do for defense; for offense also, but not as much. It's now in the realm of reality (think the mossad machine gun attack in Iran) to have systems that will autonomously attack any tank/vehicle/human, just waiting in ambush. It's orders of magnitued to have offensive AI driven tanks.
Imagine 1000 Mariupols, all automated with automated machine guns, AT missiles, drones and so on. Those do not require food, no water, no sleep, are not afraid to die.
Regardless, tanks are not what they used to be in WW2 -- modern tanks are extremely expensive and there are a lot of ways to kill tanks nowdays.
The battle will go back and forth, the tanks will get active protection, the ATGMs will get a lot faster, will used efps like the NLAW, but I think the writing is on the wall. Yeah, it was said before, just like it was said about the missile making dogfights obsolete -- a little early, but true eventually.