The prices are the same although online is easier as you can see a range of prices and trains for any given train service, and you don't have to leave the house to search. Booking tickets on the day is generally more expensive as “Advance” tickets will not be as readily available.