Two years is way too short. Even though I don’t have a crystal ball, the price is far more likely to go down than up in that short period. Unless of course inflation picks up, in which case owning any property is far better than hoarding cash.
As others have said, buy only if you like the place enough to stay put and enjoy it for at least 5-7 years.