I can't access the article, but I think attractiveness can be a factor in many jobs. People are called "ugly" because they create a negative emotion when you look at them. Having to be around people like that is objectively a bit worse than being around regular/attractive people. It's a bit like talking to someone who's always a bit abrasive vs someone who's always a bit kind.
I do agree that compared to other forms of discrimination, there are no legal protections for these people and that maybe that should change.
Discrimination against people for unalterable characteristics can affect theirs in pretty obviously damaging ways.
So "ugliness" doesn't exist in a vacuum. And these social science studies especially around something so subjective as appearance are not reliable IMO.
If you are familiar with the old HotOrNot.com or today's swipe-judgement dating apps, you can imagine some pretty large, quantitative datasets about peoples opinions of attractiveness, so I see these as plausible, without having looked into them much.
The article links to several studies purporting to show this effect in professions that ostensibly have nothing to do with attractiveness.
I get your point. It can be (often is?) reductive to generate a protagonist/antagonist sketch and then extend its implications beyond reason. I don't quite see that happening here.