Nice words oh wise one.It's happened to me a few times "We really liked you but there was just somebody who better fitted the experience...." And on one memorable occasion "If the person we gave the job to turns it down you would be next"
They have to have an open and transparent recruitment process so, even if they know who is going to get the job in advance, they have to go through a selection process which is awful for people like yourself who are seemingly there just to make up numbers.
But don't be downhearted- you got really positive feedback so your interviewing skills are clearly very good. Keep trying for other jobs.
This happens a lot I think,
