Whole beans are preferable because they retain their freshness longer, while pre-ground coffee starts losing its flavour as soon as it’s exposed to oxygen.