Answer
The answer is "Bruce Almighty", a comedy film released in 2003. In this movie, Anthony Anderson plays the role of "Denial", a co-worker of Bruce Nolan (Jim Carrey), while Jim Carrey portrays a struggling news reporter who unexpectedly receives divine powers from God. Their interactions form a pivotal part of the film's humorous exploration of human nature and moral choices.