In what occasions would you buy a townhouse/unit for IP?

Everyone know houses will have the most capital gain, it is easier to rebuild, but it is relatively expensive.

Under what circumstances, would you buy a unit/ townhouse for investment?

What would you consider when picking one ? And why?

Thanks