Restricting someone on Instagram does not prevent you two from commenting on the posts each other. But when you block someone, that person is prevented from commenting on your posts of yours. The difference is, that those comments made by that person you have restricted can be visible to only them.