The fact that there is, objectively, no choice is an inevitable consequence of the principle of causality.
But subjectively we do have a choice because we are not aware of everything that conditions us. Due to ignorance we think we are independent of the external world and of previous events in the internal world, so without knowledge of all the things that condition us we have the illusion of choice. But this illusion is real for us so we do, subjectively, have choice. That's why we must apply effort in the path to liberation.
He turns his mind away from those phenomena, and having done so, inclines his mind to the property of deathlessness: 'This is peace, this is exquisite — the resolution of all fabrications; the relinquishment of all acquisitions; the ending of craving; dispassion; cessation; Unbinding.'
(Jhana Sutta - Thanissaro Bhikkhu translation)