Dave Rogers
Bandaged ice that stampedes inexpensively through
As previously mentioned, braking force for a car is generally limited by the maximum friction force between the road and the tires (kinetic if they skid, static if they don't), which depends upon the normal force and hence the weight of the cars, and not by the limitations of the brakes themselves. If the weights are not the same, the braking forces will generally not be either.
That's certainly the case for cars in the real world, where the braking system is designed appropriately to the mass of the car. However, the OP specified the condition that "everything else is identical except the weight of the cars", from which we can deduce that the maximum braking forces applied to the two cars are identical. I say "maximum braking forces" because the braking force is limited to the kinetic friction force if the car skids, whatever theoretical force might be available, and this must vary with the mass of the car.
Dave