Yeah theres very little difference at this point between the A and M lines, think of the M as just being the more powerful line, but that doesnt make the A line weak, not by any stretch. Both are completely binary compatible at this point.
The A18 Pro single core performance is on-par with the M4 (a smidge lower but barely anything in it), and outperforms the M3.