Be aware the lectins in raw kidney beans are known to make you EXTREMELY ill even after a tiny amount!!! The cooking process removes some of them and they’re not found very concentrated in many other foods but raw kidney beans are a recipe for sickness (vomiting, diarrhoea, nausea etc)
Canned is almost ready for eating and processed. Dried will lose nutrients per gram of result depending on type of cooking e.g. here you could find retention factors for nutrients depending how you cook:
https://www.foodstandards.gov.au/science/monitoringnutrients/afcd/Pages/downloadableexcelfiles.aspx