Edit: I also do think that if I didn't do my job, nobody would be starving, and I am greatly overcompensated for it. Doctors, nurses, teachers, farmers... all of those jobs that are wildly more important for society to function are way less paid than my job fixing bugs in a corporate website, which is a fundamental flaw in the system if the aim is to incentivise people to keep society running well. For example, I know someone who is a doctor who is trying to leave to work at a hedge fund because the work is so under-compensated. This is a massive problem.
Even if it does not directly do that, maybe your fellow workers use the income they get from the company existence to raise their kid who becomes a doctor, nurse, etc.
I'm saying you have a skewed idea of usefulness. Relative usefulness can only be properly evaluated when you look at the big picture.
The fact that you are not seeing the immediate usefulness of what you are doing does not necessarily mean much. Even a comedian can be incredibly useful if he helps stave of mental and emotional distress that could contribute to burn out or shoddy work among those doing the supposedly more "useful" work.
And yes I would say an artist or comedian is far, far more useful than a middle manager at a company managing devs fixing minor bugs on a website for a superfluous business. Back to my original point, I would probably give more to society as an artist than a dev. Some people would bring more to society as a dev than an artist, mind. In a world where we got paid just to be actually useful, there would be less devs and they'd all be better at their jobs.
A comedian, doctor, farmer, or teacher creates value. They directly produce something that benefits other humans.
The financial sector, marketing, sales, real-estate conglomerates, etc I see as value movers. They don't actually create something themselves, but rather move it from someplace else to themselves, thereby forcing others to play the same game not to get outcompeted. It's pretty hard to argue marketing or hedge funds aren't a zero-sum game.
Our society doesn't optimize the lifestyles of its citizens. It optimizes stock price, which leads to an economy where everyone works a lot, even on things nobody needs, in pursuit of returns for investors. Does the Silicon Valley VC unicorn portfolio model actually help anyone other than VCs and founders?