Macbook charge cable doesn't work in my macbook. Macbook #2's cable works in my macbook. Why isn't my macbook able to charge with my cable?
I would suggest swapping the chargers and avoiding the problem.

The original charger may not have been the correct rating - had this before where they charge but so slowly or not at all.

Macs and chargers do check what they are connected to so smaller chargers don't try to charge the larger batteries as the chargers have different ratings 60W, 85W etc...