Against heavier-shielded and better-armed vessels, the Ugly was less than a match.
The Ugly's mission profile usually only required the vessel to damage lightly shielded targets.
The Corellian/B-wing was essentially flying junk, typically only used by cash-strapped pirates, built using wreckage found at various battle-sites.