Merlin is a three engine platform capable of carrying larger weight sensors with significantly longer loiter time.
Ka-31 is an MH60 equivalent. Merlin would be an upgrade over both as an AEW platform.
As a counter point, note that the PLAN also operates the Ka-31 but opted for a new AEW...