Is it better to buy a house or an apartment for investment in Germany?

Apartments offer shared maintenance costs and easier management, while houses provide more control and space but require full responsibility for upkeep. An investor would prefer shared responsibility and less effort required which rather provided by owning an apartment.