Flight 1549 (Capt. Sullenburger)

I watch a recreation of Flight 1549 on Youtube showing video of take-off until the river crash. Apparently the accident with the birds did not occur until way past take off when gears and flaps were already up. Based on the communication between the pilot and the ground, the controller was vectoring the plane to the nearest available airport while the pilot/s were attempting frantically to restart the engines. Had the pilot been able to restart an/or both engines, was the intention was to make it to the airport even though the reliability of the engines operating was almost nil? Wouldn't it have disasterous had those engine fail while in the middle of the populated city? I think that it was very fortunate that things went the way they did because I think crash landing in the water was a much better choice. Thnk so?