Well I know for a fact that Cartagena is more expensive than Santa Marta (by a significant margin). However, Cartagena is more "alive" and has more "stuff". So it depends on your lifestyle and priorities.
Try this comparison tool, maybe that will help:
https://www.numbeo.com/cost-of-living/c … Comparison
Good luck!