4K resolution is better than the 1080p resolution. But 4K resolution files can be heavy on your device. Therefore it is better to record and edit the video in 1080p and upscale it to 4K while exporting. This will also be a great tactic to get a better bitrate for YouTube.