More of an observation here.

Drainage lines need to be smooth uniform internal waterways, per IRC, which means those flexible pipes they sell in the stores should not be used...OK I get it.

So then why are dishwasher drain lines rigid and not smooth ?