Amusingly, if TA "doesn't work" meaning that you always lose money using a given technique, then by definition it is not statistically random, as you should make money half the time and lose it half the time.
If you always lose money with a particular indicator, then perhaps it is in fact good indicator but that it should be applied inversely.
Seriously, the arguments both for and against TA are odd mathematically. If a particular technique always works, then everybody would make money and nobody would lose any money.
By definition if there is a highly successful technique that is purely mathematical it must remain undisclosed to the majority of traders to remain useful.
My own belief it that TA is almost never applied exclusively. Those other non-TA factors are part of the problem. An example is falling in love with a stock, like TSLA where you go out of your way to convince yourself of a breakout in order to justify buying some.
The other problem is that price movement is not just the result if 100000 little traders with their 200 share trades. Large position changes by funds and banks can start trends either way and sometimes these are nothing more than the fund manager deciding to junk a perfectly good stock for all kinds of reasons: A contractual obligation to undisclosed clients or other banks or institutions. deciding to replace a stock with something that might the the new 'hot' stock etc. etc.
TA isn't going to help you read the mind of somebody in that position and yet the price may very well be affected by those kinds of changes.
Similarly, TA doesn't help you with future news: upcoming earnings effects, future guidance, etc. all of which may very well surprise everybody. And TA doesn't predict things like the Boeing 737 MAX problem, or China delisting a stock, or development of an anti-Covid pill (Pfizer). Even news about competitors often has an effect on other stocks in that industry, for no apparent reason.
TA has to be combined with other information. That should be clear.
Use every scrap of information available to you, not just TA.