Venezuela is significantly closer to the equator.
The confusion might stem from Iran's southern coast (Bandar Abbas ~27°N) being tropical, while Venezuela's Andes create temperate zones at elevation. But latitude-wise, it's not close: Venezuela is an equatorial/tropical country; Iran is subtropical to temperate.
For reference: Quito, Ecuador (0°15'S) and Singapore (1°17'N) are truly equatorial. Caracas (10°30'N) is tropical. Tehran (35°41'N) shares latitude with Albuquerque, NM and Memphis, TN.