I don't understand how the investments from renting are so high at the end. Can you show your maths?
After a few years rent will be more than the mortgage payments, so there is nothing extra to invest. The person with the mortgage can now offset to save interest or invest the difference from renting.