If both have IDENTICAL props rotating at identical RPM, there can't possibly be any difference in performance.
But a 180hp plane with have a slightly coarser pitch prop (and/or a larger prop) than a 160hp plane, in order to achieve the same RPM with the throttle and mixture both fully forward (the sea level 100% rated hp setting).