Spanish from Spain, Europe: Completely different. Rice and beans are mostly main dishes (for rice see paella, of course, but also the many versions of arroz caldoso - the links are in Spanish). Beans as side dish are mostly green beans in my experience/family. Side dishes were potatoes in all variations (puree, chips, fried, backed…), vegetables (artichockes, aubergines, spinach, peppers, courgettes, green peas…) and salads.
Sounds more European than South American to me. No baked beans or fríjoles at home or in my school.