One thing about the P-38 is that it was recognizable at long distance due to its distinctive layout. And this was a war where fighter pilots' ability to distinguish friend from foe, at the limits of their vision, was important.
Built-in, can't be fixed.
But the Lightning was (obviously) an excellent fighter plane; its record proves that. And the USAAF found ways to use its superior characteristics, and fix its issues, so that it was effective. Remember that everyone was using what they had and modifying their aircraft, strategy, and tactics as the campaigns wore on… Kelly Johnson didn't know in 1939 what combat conditions would be, in different theaters, five years hence. He had an idea, it was a good one, and combat experience helped them improve it.
This hindsight stuff… in 1950 every Allied air commander, if asked, would have preferred to have had F-86 Sabres in 1943. But they fought and won with what they had. And certainly the P-38 did its job well.