I would absolutely not be building a socket a 1155 based rig in 2017 (if you can even find a compatible motherboard for the 3770)
On a performance level I'd still expect the 3770 to outdo the ryzen 75% of the time.
It is however a 5 year old CPU & so will be the components you run alongside it.
Stick with the ryzen & you have an upgradeable & current build.