That’s what I’m using, it barely uses more power than a pi & it’s a 64bit x86 4core with 16GB Dual Channel, 256GB SSD.
I’ve seen newer versions of what I have for cheaper than the average Pi4, I would never consider the Raspberry over this solution given how monolithically more powerful it is for how small they are.
I have Ubuntu 22.04 LTS Server without a desktop GUI and I control it on my PC via CMD with SSH user@localipaddress