its all about luck, nothing you can do about it really, just luck of the drawer.
Just a point though, most pixels aren't dead but stuck on a particular colour, thats why you only notice them on certain backgrounds.
To get one returned you have to satisfy certain requirements, its so many dead pixels in a certain area or so many stuck on a certain colour and a screen will rarely meet these requirements to allow them to be sent back as most of the time its just 1 pixel that gets stuck or dead.
You can get certain manufacturers that will guarantee no faulty pixels, these have gone through strict pre delivery inspections to make sure they haven't but because of that they will tend to be more expensive.
Just go for it and hope, unless you look for it when you get it then you are unlikely to ever notice it, unfortunately once your eye catches it you are unlikely to be able to forget about it afterwards and will always be drawn to it so the best thing to do is not try and find one!