Your Intel i3-12100 probably better single core IPC performance, and higher clock speed than your Ryzen CPUs.
Before the release of AMD Ryzen cpus, Intel Pentiums, i3s, i5s, i7s pre-8th gen desktop CPU all start off as the same base 4 core chip. With defective ones having features and cores disabled and turned into the lower end chips.
Pre 8th gen Intel;
i7: Top binned chips with all features enabled and very higher clock speeds.
i5: Slightly lower binned chip with hyper threading disabled, given less cache, slightly lower clock speeds.
i3: Somewhat defective chip so has 2 cores disabled, given less cache, but has hyper threading enabled, and very higher clock speeds.
Pentiums: Even more defective chip, so has 2 cores disabled, hyper threading disabled, and slightly lower clock speeds than the i3.
Celerons: Lowest binned chip, lower clock speed, and even less cache than the pentium.
The lower end Intel consumer CPU like the Pentiums, i3s, and i5s were preferable and recommended for gaming machines over Xeons and i7s. The reason for this is because Pentiums and i3s only had 2 cores enabled, so in theory each core could be clocked way higher than a quad core CPUs like the i5s and i7s, or 6+ core xeons because of overall lower power draw and less heat output on the entire package. i5s were preferable to i7s because they were on average $100-$200 cheaper each and each core didn't have to share their allocation CPU cache memory with virtual hyperthreaded cores. For instance if an i5 had 6 MB of cache shared between 4 cores, each core would get 1.5 MB of cache, while i7s had 8 MB of cache, but had 4 physical cores and 4 virtual cores when hyperthreading was enabled, meant each core/thread would only get 1 MB of cache which would tank performance.
Intel always went with the fewer but higher performing single core model, while AMD always went with more but weaker single model. For instance AMD 8 core FX CPUs were on par or better Intel quad core CPUs like the i5s and i7s in multi-threaded work loads, but always lost to Intel CPUs in gaming loads because most games only used 1, 2 or 4 cores. So Intel would dominate in gaming because their individual cores had way higher performance.
After AMD released their Ryzen CPUs, Intel's CPU classifications 8th gen and onward changed, where new i3s are basically the old quad core i5s. i5 become what the 6 core xeons use to be. i7s became higher binned 6+ core xeons with hyper threading, and i9s were introduce as a new classification without any easy to definition beyond higher binned than i7s or just outright more cores. Why did this happen? Because when AMD released Ryzen CPUs, AMD finally was able to match Intel's stagnate consumer CPUs in terms of IPC in terms of clock speed, and power draw. AMD with 1st and 2n Gen Ryzen was able to offer on par or even better single core performance for cheaper than Intel 7th gen, 8th gen, and 9th, which made Intel finally get off their butts and try.
Well let skip back to more recent times. Intel is now spanking AMD again in terms of single core performance. AMD's top of the line Ryzen 7 5800x was losing to top of the line, the i9-12900KS (basically i9-12900K cpu without the iGPU which allows it to run at higher clock speed due to no heat / energy waste from the iGPU). So what did AMD do? they released the Ryzen 7 5800x3D, where they cranked up the L3 cache on Ryzen 7 5800x from 32 MBs to 96 MBs. This give the Ryzen 7 5800x3D basically around a 40%-100% boost in overall performance in gaming due to how much cache each core now had.
Now how is all of this relevant to your 12th gen i3-12100?
Your i3-12100 is basically a pre-8th gen i7 on steroids, compared to an i7-7700K, its now on 7 nm node with a clock speed of 4.3 ghz instead of 14 nm at 4.5 ghz, which makes it way more efficient, it has 12 MB of L3 cache + 5 MB of L2 cache compared to only 8 MB of L3 cache of the i7-7700K. Now compare that to 4 year old 2nd Gen Ryzen 5 2600x with there 6 core / 12threads on a 12 nm node with a clock speed of 4.2 ghz and only 16 MB of L3 cache + 3 MB of 2 L2 cache.
So I definitely imagine your i3-12100 with its 4 core / 8 threads having better single core performance and better performance in games that can only use 4 cores or less than most 1st and 2nd Gen AMD Ryzens due to being on a smaller chip that has higher clock speeds and the latest manufacturing techniques, and more cache per core / thread. Its probably even most post 8th gen i5 for much of the same reason.