They are different models.
M5 is a model tree that approximates Quinlan's model tree method. It can be configured to use trees or convert the trees to rule-based models.
Cubist is not a model tree. It makes one then converts it to rules. It also has boosting and a neighbor-based correction and uses Quinlan's code.