The PRoblem with the A10 is not what it does but increasingly where it can do it. In Afghanistan The Taliban has limited air defences. No major SAM sites, no S 300, S400, S500 systems at best a MANPAD and some Heavy machine guns. For A10 that's perfect.
But change the situation up, in the First Gulf 6 A10's were downed, 4 known to have been SAMS and Manpads the remainder are suspected to have been SAMS.
Now A10 is to get rewinged and that's good but eventually, it's not going to be there.
The USAF brass has been trying to kill the A10 for decades but it still trudges on. It just speaks to the viability and capability of the airframe especially in the CAS role. The F35 as capable as it is still cannot match the A10 in terms of ordnance delivery and whoopass factor.
CAS still has to be delivered effectively at low levels otherwise a B1 would be the ultimate CAS airframe which it isn't. The F35 falls somewhere in the middle but still fall short.