Yep. You have to be. You can provide feedback to them or their manager if possible but the reality is that the employment status of your incompetent coworker is not under your control.
Well yes but you certainly can’t become a lead if you’re getting mad at people. At least in many situations you can’t. And yes you could quit, but the job market isn’t the best right now. And sometimes the jobs that pay more require dealing with less competent people so sometimes there are tradeoffs.