Pretty good comparison, they got a lot more in common than you might think at first glance
Two groups of angry black men making aggressive music that was very much a reflection of the world they grew up in and scaring the bejeezus outta whitey in the process
NWA was obviously the forefathers of West Coast gangsta rap while Public Enemy influenced a lot of the militant and conscious rap that followed, groups like X-Clan and rappers like Paris, Askari-X and even Common
They both had huge hits in the late 80's but NWA is definitely more well known these days because of the mainstream success of Ice Cube and Dr Dre
The groups had so much in common that when Ice Cube left NWA, he immediately flew to New York and hooked up with P.E.'s production team, The Bomb Squad to produce his classic first solo album, Amerikkkaz Most Wanted
I think it just comes down to personal preference, Im always gonna ride with West Coast Best Coast so its NWA for me but Public Enemy is one of the few East Coast Least Coast groups that I am a fan of