Glider
Captain
There is a HUGE difference between firing at B26's at sea level doing torpedo attacks and shooting at SBD's diving from altitude. Shortround is correct that the Japanese had no AA between 25mm and heavy AAA. They had 0 quick firing medium range weapons such as the 40mm Bofors on their ships.
I certainly could be wrong but my belief is that the USN were basically in the same position at Midway. 20mm had been added and some had the quad 1.1in a weapon I once saw quoted as almost better than nothing. The HMG was a common aa weapon but people always seem to have a go at the Japanese forgetting that the 40mm was but a distant dream for most ships at that time.
The comments about the 25mm being nothing more than a revenge weapon also apply to the 20mm and as for performance, the 20mm was a better weapon certainly, but the 25mm was far from useless. It had a slightly higher MV and probably slightly better ballistics which tend to favour the heavier shell than the 20mm.