A will get higher.
Because the mass of A is higher and the forces of resistance are said to be
equal…
Without resistance forces the maximum height would be equal, but, with resistance have a force pointing downwards and F=m×a… so, for an equal resistance force, if the mass is higher the acceleration is lower, if the mass is lower, the acceleration is higher. The body B with a higher downwards acceleration gets stopped sooner and can’t get as high as body A.