Egg yolk is no problem whatsoever for a modern dishwasher and detergent. And obviously you don't put whole potato chunks in the machine. Don't be stupid.
GE machines come with a garbage disposal built-in. Be as stupid as you want, things are still coming out clean.
https://www.geappliances.com/appliances/dishwashers-with-pir...