For the contrast A>B, the number of trials is not considered. When you contrast A and B, you are assessing the mean response to trials of condition A to the mean response to trials of condition B. You wouldn't want to weight this by the number
of trials as then the contrast would not make sense.
The number of trials can effect the accuracy of the estimate of the mean response to a condition. In this way, A could be stronger or weaker than it actually is in each subject. Because of the decreased accuracy, you could also have increased variability
between subjects.
As a result of the increased variability, the mean response needed for A to be different from 0, will be greater than that in B. However, this not imply that A will be greater than B as the significance of A doesn't tell you anything about A>B. In fact,
you could construct a case where B>A and where A>0 is significant, but B>0 is not significant. In A vs B, you are using the within-subject variance and fro A or B vs 0, you are using the variance between subjects.
Generally, you need 30-40 trials to get a stable estimate of the mean response of each condition.