Usually the back camera has an ir filter and the screen side camera doesn’t. When I test ir from emitters the back camera doesn’t work and only the screen side works, this is on an iPhone 5 and 7.
There's no worse feeling than that millisecond you're sure you are going to die after leaning your chair back a little too far.