It really depends on what you want to gain from the flaps and you overall plane design.
Flaps first function is landing. This has two faces: drag and lift. Drag is GOOD for landing in most planes. If you plane has low drag for its mass you need an air brake or you will run out of runway. For this purpose, there is no reason to use a complicated flap. Lift is important if your plane is very high wingloaded - it helps to reduce the stall speed, hence the landing speed. Lower landing speed need less added drag to stop you in time. P-38 which is fairly heavy and has no torque, hence can safely fly with high power near stall speed, is a prime candidate to have one.
Then there is the overall plane design. Surprisingly, planes are not built to have the "best" possible performance. There are many other considerations that have nothing to do with how the plane flies that end up having greater effect on the air-war. Making the plane cheaper, easier & quicker to manufacture, easier to maintain, more reliable and safer, can have far reaching consequences - much more than improving an insignificant corner of the flight envelope. Could the mosquito be "better" had it had more metal and less wood? Perhaps yes, but it would be much more expensive and could not be built by the piano makers when no one was buying pianos. Likely it would not have been built at all. The P-38 was a great fighter, but it was very expensive and required almost twice the maintenance that a single engine plane needed. You could use these engines to get two mustangs instead. The F4U had a more advanced design and many performance tweaks over the F6F. However, the F6F was more reliable, faster to manufacture, cheaper and safer on the flight deck. The F6F was fighting all the decisive battles when the F4U was fighting technical problems and deck qualifications.