I can say that a well trained artillery properly positioned and being able to move rapidly can take out tanks. Artillery can hit something they can't see. Tanks are not known for hiring targets 2 hills/5km away, Artillery is. A lot depends on the terrain and the intel available.
By artillery I don't mean super ebganced guided missile systems by good old Howitzers 105, 155.
Well trained tanks are quite familiar with dealing with artillery. They are highly mobile, can cross many kinds of terrain (not just roads), and are well aware of using terrain, random speed, and random directions to avoid artillery fire.
Pretty impressive that the ground pressure of a M1 abrams tank is less than half of my mountain bike with 2.6" tires.
On anywhere close to equal footing artillery is a pretty dangerous thing to shoot, as soon as your position is triangulated you'd best shut down and move.
Sure direct fire from tanks is 2-4km, but there are tank fired indirect fire weapons as well. Like say the XM1007. On equal footing I'd rather be in a tank (moving at say 20 mph on an unpredictable course and speed) than hoping for the best with artillery. After all even if you get lucky with 1 tank, there's never just one tank.
Even air superiority isn't as useful as it was. A drone up in the air for 5 minutes with a targeting laser can ruin your day.
Seems pretty weird these days to be investing in tanks, but not investing in the A-10 Warthog.
Seems like drones would make artillery more deadly vs tanks as it'd make it easier to score indirect hits with fewer spotters and lower comminication latency vs radio. I imagine most tanks are big enough to allow a drone to spot one from outside the effective range of a regular machine gun.
By artillery I don't mean super ebganced guided missile systems by good old Howitzers 105, 155.