Either run it to its own trap or to a flanged tailpiece
No difference between a clogged sink or disposal really. However if the dishwasher is run to its own trap or to a flanged tailpiece at the other sink bowl, the disposal or its trap line clogging up won't affect the dishwasher drain line. Yes, dishwasher have valves that should keep water out, however you know for sure it will work. I don't.