While the canned Frijoles are a lame excuse for true Mexican Frijoles Fronterizos, they can, of course, be used as quick substitute as you are considering.
The real thing, often seen here in the U.S., originates in the Mexican State of Sonora. They take 6 to 10 hours to cook properly and, if done according to tradition, one has to use real pork lard as an ingredient... in addition, they are never mashed or pulverized... to do so makes the Frijoles Refritos... after which they are occasionally fried in a heavy cast iron skillet...