Likewise for a sandwich, if the meat and cheese and bread are all in robot-compatible forms, it's just layering them together. Not much more complicated than a printer that can pull from multiple paper trays. You can even combine the two for maximum efficiency.
What's hard is making a robot behave like a human, because even humans struggle at behaving like a human. IMO there's no purpose to making a robot have the same physical constraints as a human. Our bodies are pretty shitty when you think about it. Robots can be much more elegant.
If you don't think there are sandwich-making robots that actually exist, I'd wonder how you think gas station ham sandwiches are made. Hint: it's a conveyor belt that drops bread, then cheese, then ham, then more bread. That's a robot that makes sandwiches. I'd sell you one for $1m, but you'd probably say "I can make my own for free, thank you!"