An air conditioning unit is rated according to efficiency. They are all different, so if we used electrical kw rating to compare them, it might not be a true comparison of their cooling capacity.
Basically, two AC units rated at 5kW will probably not have the same cooling capacity – it depends on their efficiency.