That works fine as long as nobody actually uses the unhappy path. If major libraries and frameworks do it all the time, you lose. So there is a certain aspect of culture outside what the language itself is capable of doing.
If there's common real world paths that need to be supported, you can tailor optimizations to target those uses cases.
If there's common real world paths that need to be supported, you can tailor optimizations to target those uses cases.