There are a lot of investments which have managed to beat inflation, but Bitcoin may not be necessarily one of them. The reason I say that is we do not have enough data. You cannot conclude that basis Bitcoin's price increase in 2017.
Equities, when you look at it over a period of time (decades) definitely has given returns higher than inflation.