Current beakerd chooses flavor only according to its disk size. But the sorting should also consider the ram size and flavor's id (id is important for tests and beakerd to choose always the same flavor).