Neither. Proper machine and grinder. Do it properly.[edit: beaten to it 😀 , but +1]
Pods I’m not a fan of and work out very expensive, proprietary systems and wasteful in packaging.
Bean to cup can involve a lot of cleaning. Office had one briefly and it kept putting up messages saying to change or clean this and that after every few cups, and then getting a shot out took ages. Way too much faff for something supposedly automated.
Obviously you have to clean a regular espresso machine, but not after every few cups, or you just do a quick wipe, then clean properly end of the day or each week.
Though a lot of the time I just go with cafetiere for a quick brew.