I agree it really comes down to the individial situation.
However both points are kinda non issues due to our renting laws and the more or less standard contract around here. Getting kicked out only works with a reason, plus a prior notice from i think at least 3 months plus they are not allowed to increase the rent just for maintaining liveable conditions (i.e. repairs that have to be done).
But sure if you are willing to think and calculate in long terms (~30-50 years) buying often is the cheaper option. Yet comes with an additional workload (taxes, repairs, ...)
And any costs to maintain a livable condition is going to just be added to the cost of the rent anyway, so it's not like you're actually saving money.
Buying as its own costs of course, and sometimes it's more cost effective to rent. The most unuseful answer, hence, is that it depends on the specifics.