Agree with Kidman.
Duke is a fantastic out of the box thinker, especially when it comes to considering dispersion and soundstage related design considerations, delivering value, and other things, and an exception, but I do think that in general most rear ported speakers are designed to work best in genral further away from the front wall whereas most front ported or sealed designs tend to work better closer to front wall.
So worth keeping in mind, but not a hard rule that will always prove true.
Bass response will be a big determining factor. Proximity to walls in most cases results to more bass re-inforcement regardless of design.
Distance to walls in general helps with soundstage and imaging. How much will vary depending on many factors, dispersion characteristics being one of the bigger determining factors.
Most every speaker will sound different close to front wall versus further away. Which is better depends...on a lot of things. GOtta listen and compare to know for sure in each case. Always be willing to tweak and change something when needed. What changes need not always be the gear itself.