How to compare currentUser with entry.author?
Try this:

{% if currentUser.id == entry.author.id %}


When using quotation marks, it means that it's a string in Twig. What you want to do is compare the value of the actual variable.

Also, currentUser is a UserModel, so you need to get the id property to compare it with entry.author.id.