The medicine did not actually cure my terminal illness, but it surely tasted great and made me feel good about myself.
I don't agree with the analogy. Better UX affects users behaviour and can make a safe path easier for the user than the unsafe one, reducing total number of incidents.