You are welcome to your opinion.
I do not find it convincing.
Al Queda had a safe base of operations in Afghanistan. We took it away.
Should we be doing something different?
Almost certainly.
We have been occupying Germany for much longer, Japan as well.
Reality is difficult.
There are no magic solutions.
I need not convince you at all. It is you that need to do the convincing, as you stand on the side of a continuing war that has been absolutely ruinous for the American people.