Only hibernate when closing the lid, display sleep otherwise?
Hibernate only (not sleep) when closing the lid:

sudo pmset -a hibernatemode 25


And to go back to "normal" behavior: 

sudo pmset -a hibernatemode 3


As for the sleep behavior with an open lid, just slide the Computer sleep timer to Neverin System Preferences > Energy Saver. Alternatively do

sudo pmset -a sleep 0