Absolutely, see the thing is your diagram is incorrect that is why all of your equations are wrong.
See, mv2/ l is the centripetal force which is present along the radial direction along the center of rotation. Now since net force is centripetal (towards O which is the point of attachment of the thread) The difference bwteen the two forces must also be towards the point O .
Since mv2/l is positive and directed towards the center, the difference should also be such that it’s direction is towards O , meaning it should be T – mgcos theta = mv2/l
The mistake which you’ve made is, you’ve got the direction for mv2/l wrong, it isn’t directed outwards but it is directed inwards towards O.
And even if it’s not max at A. The basic concept is the same for every point in circular motion, whether it is maximum or not. See, if you’ve solved questions related to pulley, when a body of mass m which is hanging by a thread, is undergoing accelaration UPWARDS, the equation is, T – mg = ma and not mg – T , because the NET FORCE is directed upwards so the equation should be Upward force minus downward force = net force which is upwards.
Had the net accelaration been downwards, the equation would have been downward force minus upward force = net force which is acting downwards.
In circular motion., the circular path followed by the body is due to a net force which acts CENTRIPETALLY, (directed towards center or inwards) that is why the equation is inward force minus ouward force = net force which is inwards . In this case the inward force is Tension, the outward force is component of mg in radial direction and net force is mv2/l acting INWARDS.
Did you get it?