I do agree the ditching part is not that impressive but I don’t beleive IA, at least nowadays would be able to take that kind of split decision. Even if it was smart enough to decide to ditch, it might crash into a ferry passing by.
I don't remember if it was possible to see and actively avoid obstacles on the Hudson or whether the "big river" effect was in play.
As others have pointed out once all engines quit you will soon be landing somewhere.
Actually not that hard to have the AI handle that scenario by locating the "most suitable location" following a simple enough tree:
Inside predicted range including obstacles etc:
Suitable airport
Any airport, even a short runway likely better than most "other"
smoothest other surface, around NY that would most likely be water.
avoid school yards. ( As the newspapers like to report.)
Interestingly this would avoid the sometimes seen private pilot unsuccessful attempts to return to take off RWY on engine failure when the corn field is a safer option.
It's quite easy to see how far you're gonna get...Forget turning LGA and TEB!
I remember (possibly incorrectly) that TEB was offered by controllers, I do remember someone saying it "might" have been theoretically possible if everything went perfectly.