One such example is the way our retinas are wired to the optic nerve on the inside of the eye, rather than behind, causing us to have a "blind spot" where the nerve fibres need to go back. In some other animals, particularly the octopus, the retina is wired the "right way", such that they don't have a blind spot.
Same for the design of our pharynx, larynx and esophagus. As mentioned in sibling comments, other animals suffer from choking much less, as compared to humans, where we have ~5k deaths/year from choking just in the US [0].
[0]https://www.statista.com/statistics/527321/deaths-due-to-cho...
Choking kills thousands of people every year and is the fourth leading cause in children under 5. According to this article (https://pubmed.ncbi.nlm.nih.gov/35099619/), aspirated pneumonia is even worse, especially for older people, who guess what, can't chew well.
And it's all due to the (apparently not terrible) design.
And even if you agree that evolution is an optimization process, attempts to define its objective function run into problems with tautology and circular definitions once you move beyond simple examples.