Energy and conformation determine the enantioselectivity of enzyme