the latter , ie you sign a contract to buy if your application for pp is sucessful, and likewise you can walk away if not sucessful. only cost is that of planning aplication and lost time !
The other option is to get the landowner apply for it in his/her name - may be a possible way of getting permission if there are any restrictions on satisfying local needs etc