A flat that cost 500-600K in Berlin would be rented out at 1000€ a month, that can’t increase more than the rent control allows. A mortgage would cost 3 times as much.
So you’d be better off renting and investing the deposit, the stamp duty, notary costs and the 2000€ you save each month in government bonds.