Notwithstanding the baby carrots example, most ugly produced is still used and sold. It’s made into soups, salsas, juices, etc.
I’ve read that one reason we get so many e-coli infections from lettuce is that there is no secondary market (no lettuce juice) so the farmers drive it to the livestock farms and track back germs to the lettuce farm on their wheels.