(Edit: removed my harsh comment, sorry)
Here's the relevant lines copypasted if it's too difficult to spot otherwise.
First file: (576p)
2024-01-19 03:41:31.486 T:14489 info <general>: ffmpeg[0xcdd28030]: Stream #0:0(ita): Video: h264 (High), yuv420p(progressive), 720x306 [SAR 1:1 DAR 40:17], 25 fps, 25 tbr, 1k tbn (default)
2024-01-19 03:41:31.494 T:14489 debug <general>: [WHITELIST] Matched an exact resolution with double the refresh rate 720x576 @ 50.000000 - Full Screen (36)
2024-01-19 03:41:33.772 T:14513 debug <general>: CRenderManager::Configure - change configuration. 1920x1088. display: 1920x815. framerate: 25.00.
2024-01-19 03:41:33.882 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 25.000000 - Full Screen (32)
Second file: (720p)
2024-01-19 03:42:12.119 T:14627 info <general>: ffmpeg[0xcdcb6c30]: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default)
2024-01-19 03:42:12.122 T:14627 debug <general>: [WHITELIST] Matched an exact resolution with double the refresh rate 1280x720 @ 50.000000 - Full Screen (34)
2024-01-19 03:42:14.562 T:14641 debug <general>: CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1080. framerate: 25.00.
2024-01-19 03:42:14.818 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 25.000000 - Full Screen (32)
Third file: (1080p)
2024-01-19 03:42:55.203 T:14733 info <general>: ffmpeg[0xcdd28030]: Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1040 [SAR 1:1 DAR 24:13], 23.98 fps, 23.98 tbr, 1k tbn (default)
2024-01-19 03:42:55.207 T:14733 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 23.976000 - Full Screen (30)
2024-01-19 03:42:57.550 T:14748 debug <general>: CRenderManager::Configure - change configuration. 1920x1088. display: 1920x1040. framerate: 23.98.
2024-01-19 03:42:57.732 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 1920x1080 @ 23.976000 - Full Screen (30)
Fourth file: (4K)
2024-01-19 03:43:29.090 T:14834 info <general>: ffmpeg[0xcdcb6c30]: Stream #0:0(ita): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
2024-01-19 03:43:29.096 T:14834 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 3840x2160 @ 23.976000 - Full Screen (27)
2024-01-19 03:43:32.035 T:14848 debug <general>: CRenderManager::Configure - change configuration. 3840x2160. display: 3840x2160. framerate: 23.98.
2024-01-19 03:43:32.106 T:14167 debug <general>: [WHITELIST] Matched an exact resolution with an exact refresh rate 3840x2160 @ 23.976000 - Full Screen (27)
... so, for each file Kodi first plays a few seconds, then this "CRenderManager" kicks in and decides it's time to check whitelist again. For 1080p and 4K this second check gives same result so nothing is changed.