There are a couple of significant differences by using the Recovery Mode and DFU (Default Firmware Update) options to fix iPhone stuck on Apple logo issue. As mentioned earlier the firmware is what communicates to the hardware, before the initial launch up of the iPhone. In case there was an issue with the firmware unlike with updates or software causing the issue, the DFU option is better to use, compared to the Recovery Mode fix, mostly suitable for the latter mentioned issue. Next let's see how to restore iPhone in DFU mode:
Step 1: Connect your device to a PC and launch iTunes.
Step 2: Similarly, for iPhone 6s and earlier, hold down both power button and home button for 8 seconds or so, let go of the power button and keep holding down home button until you see a popup message that says, "iTunes has detected an iPhone in recovery mode"; for iPhone 7, 7 Plus, use volume down button to replace the home button and do the same operation; for iPhone 8, X, XR, XS, press and release volume up button quickly and then volume down button, then hold the power/slide button until the screen turns black, and then press and hold the volume down button while holding the side button simultaneously for 5 seconds. Next, release the side button and keep holding the volume download, now you'll see the same popup window.
Step 3: At this point, ensure that the screen remains black or dark, without displaying anything. If not, the device hasn't entered DFU mode and you may have to start the whole process all over.
Step 4: Once in the DFU mode, the device should connect to iTunes and a prompt to perform a restore or a complete restore to factory settings will be displayed. Click the "OK" button and then hit the "Restore" option to put your iPhone in the DFU mode.