Question about cost of apostasy
Assalamualaikum wa rahmatullahe wa barakatu!
As we know the cost of apostasy is death penalty. I want to know, is it obligatory to put to death an apostate? There is verse in Qur'an which states ''There's no compulsion in religion'' . And in case, a learned Muslim is supposed to discuss or debate on religion & wants to try to get the truth, but in the end he may decide to apostatize, may find Islam illogical; would it be an obligation to kill him still if there's no any compulsion in religion i.e Islam?