There is no such thing as an ideal historical ww2 gun?
A Ki-44 might've worked as-is with a pair of either Ho-3s or the Navy's cannons. Sprinkle with some HMGs or LMGs to taste.
The FFL might've been the best fit - it was not some awesome 20mm weapon, but it has no actual shortcomings (be that in weight, size, RoF or MV), bar the late start as far as the Japanese go. It's slender ammo was also a bonus, more could be packed in the volume than the bottlenecked 20mm rounds.
You are correct, there was no 'ideal' 20mm historic WW 2 gun.
The Hispano was good, but it took a while and it was heavy, there was
no powerful
but light gun. Sort of pick one or the other
The FFL/type 99-2 might have been good, not the best but it was closer to the Hispano while weighing less.
The Ho-3 ammo was fat, About 7mm or about 33% fatter than the 20 x 72RB and 20 x 99RB of the Japanese Oerlikons. Not so important with the 50-60 round magazines/drums but when you are heading towards 100 rounds and the fatter shells will only allow around 75 instead if 100?
Japanese 20mm stuff was pretty reliable, or, at least there are no Allied reports on these being problematic. Perhaps the people designing and making guns were simply good in what they were doing?
The HMGs were decent by mid-war, but going with HE stuff on the HMGs was both not worth it (bang for buck) and IIRC was cause of premature detonations on the Ki-43.
Most WW II guns were not built on the cheap model, except some Soviet guns and a few German? That came later.
Just pointing out the trying for a light weight gun can have consequences. That is lighter than average for the performance. You can have a light gun that is reliable and long lasting if you give up some performance factors. Japanese had been fighting in China for a number of years, slowly expanding southward. They had also been operating in Manchuria for a while and were familiar with supply/logistics.
Japan was also a small country Industry wise. There was not the car industry or even an industry that made large numbers of washing machines or refrigerators. Car production was more on the order of 0.1% rather than even 1% of US production. Or even less. Under 12,000 trucks buses and cars built in 1939? A lot of their steel production went to the Military even in the 1930s. There wasn't a lot of industry to convert over.
The Japanese did a lot of good work but they also didn't have the engineers and technical people. The US had enough people and enough resources to train people during the war, It was not unlimited but the US Industry also planed for schools or training areas to train people for weeks or months before they stuck them into a number of jobs in the factories. Not training on the job as an apprentice. The American way got more people semi-trained faster. It might not have given more well trained (higher skill levels) after one or more years.
The whole 12.7mm explosive bullet idea might have been a mistake, for any nation. The Japanese were trying to do away with the expensive fuse.
A 12.7mm round held around 1/5 to 1/10 of the HE of a 20mm shell. If you used a fuse it did not cost only 1/5 to 1/10 as much because it was smaller.
But 12.7mm AP or incendiary (no fuse) may show a large advantage over 7.7mm bullets.