Using RANK instead of RANKX in DAX

Should you use RANK or stick with RANKX? In which scenarios is one better than the other?
In-depth analysis to make informed choices.