The alternate ending from I Am Legend wasn’t to open the door for a sequel. It was the original ending until test audiences reacted poorly to it (I guess they didn’t want to feel sympathy for the monsters), then they changed it before theatrical release.
The alternate/original ending is better. Still a meh movie though.