The P-51 was a lousy attack aircraft. In fact it was probably the most over-rated aircraft of WWII, and possibly ever.
The P-51 Mustang was good for protecting bombers. And it has great lines.
But if you want the best WWII attack aircraft you go with the P-47 Thunderbolt
http://militaryhistorynow.com/2015/04/20/the-jug-10-cool-facts-about-the-p-47-thunderbolt/