After Minato did a rasengan he could have ended it but he needed to get the fox out of his controls so he needed to live for that moment. But Minato marked him for two reasons.
1. To get the Fox.
2. To kill him afterwards.
Don't try to bash because a lot of people never thought of it. Don't like the thread? Well keep your thoughts to yourself.