Pool Pump Motor Replacement

I have an old Sta Rite 1/2 HP motor that went out on my. See the attached pic. Can you tell me which motor would work to replace it? Thanks

Looks like a 48Y Frame motor.

This might be a good one

V-Green 1.65 HP Square Flange 48Y Variable Speed Motor - ECM16SQU

Or this one

Century 1/2 HP Square Flange 48Y Up Rate Motor - USQ1052