For instance, human eyes can't perceive the difference between a 12MP and a 50MP image printed in a poster format from a typical 1.5-2meters viewing distance and 8MP is usually good enough for most large prints.
So I would advise choosing a second hand model taking shutter count, general state, lenses quality, autofocus speed and image stabilisation efficiency as more prioritary parameters than sensor pixel count.