Tamlīḥ and tahakkum always have exactly the same purpose.

Multiple Points of Resemblance, Ironic Contrast and Simile Markers