We compare two versions of the nonlinear q-voter model: the original one, with annealed randomness, and the modified one, with quenched randomness. In the original model, each voter changes its opinion with a certain probability ǫ if the group of influence is not unanimous. In contrast, the modified version introduces two types of voters that act in a deterministic way in case of disagreement in the influence group: the fraction ǫ of voters always change their current opinion, whereas the rest of them always maintain it. Although both concepts of randomness lead to the same average number of opinion changes in the system on the microscopic level, they cause qualitatively distinct results on the macroscopic level. We focus on the mean-field description of these models. Our approach relies on the stability analysis by the linearization technique developed within dynamical system theory. This approach allows us to derive complete, exact phase diagrams for both models. The results obtained in this paper indicate that quenched randomness promotes continuous phase transitions to a greater extent, whereas annealed randomness favors discontinuous ones. The quenched model also creates combinations of continuous and discontinuous phase transitions unobserved in the annealed model, in which the up-down symmetry may be spontaneously broken inside or outside the hysteresis loop. The analytical results are confirmed by Monte Carlo simulations carried out on a complete graph.The subject of the opinion dynamics is studied within social and computer science, mathematics, statistical physics, and engineering, and models of binary opinions are of particular interest within all these disciplines. Among them the q-voter model is one of the most general one, reducing for specific values of parameters to other models, including the famous voter model. In the original q-voter model all agents are identical and can change randomly their behavior in time, which corresponds to the so-called annealed approach. In this paper, we reformulate the model under the quenched approach, i.e., we assign to agents some individual traits that remain constant in time, and ask the question about the role of the approach in shaping macroscopic behavior of the model. To answer the question, we compare two versions of the model, the quenched and the annealed one. Such a comparison is an important issue in statistical physics because the annealed approach is much simpler for the analytical treatment, and it is often used as an approximation of the real quenched system. Moreover, it may be also interesting from the social point of view because it corresponds to the famous personsituation debate.