I bought an apartment and would like to rent it out.
Then I am going to rent a place for myself.
The idea behind this is so that I can claim on all the benefits associated with having an investment property
is this a smart way of doing it or is it better to live in the place and just pay off the mortgage?
It depends on your situation. It's too hard to answer without taking into account:
Open a spreadsheet and try to factor in as much foreseeable incomes / expenses and decide it yourself.