If I setup my living room for a 5.1 system the rear speakers will be next to the sofa - not in back

Question - would it be better to have 2 pair of bookshelf speakers for the front and rear or would it be better to have something like the QS4 v3 Surround Speakers for the rera speakers?