How The Holy Spirit Helps With Discernment
The Holy Spirit makes us discern between trials, which are necessary for the growth of the inner man, and temptation, which leads to sin and death. We must also discern between being tempted and consenting to temptation. Finally, discernment unmasks the lie of temptation, whose object appears to be good, a “delight to the eyes” and desirable, when in reality its fruit is death.
Catechism of the Catholic Church #2847