That's the problem with robots like Optimus. The "specialized" part (Cutting the onions) is 1% of the skills. You'd still need to other hard 99% (Prehensility, vision, precise 3D movement, etc.).
And if you sorted the hard 99%, what's the point in specialising in cutting onions, when the same exact skills are needed to fold and put away laundry?
Also, if you take 1 million jobs, do you think that might cause demand to drop for services?
The savings from automation in a particular sector are spent elsewhere — wherever services are more costly (in labor). That's the dynamic behind Say's law, which shows that spending on less automatable jobs like barbers and physical therapists increases as automation reduces costs in other sectors of the economy.
If 1 million prep cooks are replaced by robots, will food become cheap enough that those prep cooks can all get jobs as barbers, and the money people spend on food will shift to haircuts?
Will the food be so cheap that all those prep cooks can afford to learn to cut hair?
Also consider the money velocity of a human vs a robot. A human is probably paycheck to paycheck spending everything they earn. Robot earnings go back to company, which makes the stock go up, 90% of which is owned by billionaires who just keep hoarding and hoarding.
As for the gains from robotics, they go just as much to workers as to investors. Remember, investors are competing with each other, so they have to keep cutting prices. And that means workers see their wages buy more goods and services, given those goods and services cost less to buy. When wages buy more, that's effectively the opposite of inflation. In inflation-adjusted terms, that equates to a wage hike.