I don't think the code requires it to specifically match the "panel OCPD", by which I'm pretty sure you mean the motor feeder OCPD.
The rating of a motor disconnecting means is determined by 430.110.
What I think you are calling a motor OCPD is actually the motor disconnecting means. Also, motors do not have overcurrent protection devices, they have overload protection devices. All OCPD's in motor circuits are for protecting conductors, not motors.
Also, this looks like it's a rooftop AC unit, not a motor, in which case this is all governed by article 440, not 430, but you would know better than I, so just ignore that if I'm wrong.
You might need to clarify your question and the situation if you want a better answer.
Or wait for someone smarter than me to come along.
Generally speaking the rating of a disconnecting means is not tied to the rating of any upstream OCPD, it is tied to the rating of the load. An oversized disconnecting means is code compliant and common since disconnects are only made in a few specific ratings, but loads come in all shapes and sizes.