Tax is very relevant when deciding whether to retain an apartment as a rental or to cash out any equity and apply it against the PPR mortgage.Tax is irrelevant to profit. All profit is taxable.
Cash-flow is certainly important but I disagree that it's the most important factor to consider.