Discrete delay, distributed delay and stability switches