I believe it goes by operating category for the AZ-EY codeshare. So you'd earn the EY rate of 130% or 175% based on the segment's fare code.
Remember that not all miles are equal. I'm not that familiar with AZ's program but one may earn more miles in a program but redemptions may require more miles.
Depends where your future flight plans are and your goal overall.