The growing demand for energy calls for efficient utilization of natural energy resources in developing useful work. Thermodynamic irreversibility deals with the disorderliness in any system. This work investigates the energy optimization of a cylinder experiencing stretching and rotation immersed with aluminum alloys (AA7072-AA7075) in engine oil-based nanofluid. The Maxwell nanofluid model is employed to check the thermophysical properties of nanofluids. Heat transfer occurred at the cylinder’s surface by considering the constant and prescribed temperature. Forced convection is due to a stretchable rotating boundary, while natural convection is owing to a thermal gradient in the system. The dimensionless ordinary differential equations are obtained by using the appropriate ansatz and solved numerically through the bvp4c technique. A comparison profile of constant wall temperature and prescribed surface temperature shows that entropy generation and Bejan number are reduced for the former and increased for the latter, while thermal transport exhibits an opposite behavior. The axial and azimuthal wall stress parameters diminished due to an increment in Reynolds number. The heat transport rate is comparatively higher for AA7075/Engine oil than AA7072/Engine oil.