With an engine shut down on a twin, if you land at the nearest suitable airport you have covered your backside. I can’t recall a single instance where a regulatory authority have taken the position that a crew should have pressed on to the destination on one engine.
If you are going to continue past a suitable alternate, you had better have a good reason and be prepared for lengthy questioning on your decision making process.