I’ve never done it before, but I’ve looked into it online. It’s not as simple as one would think, but it can be done. Some say G gle Pixels (ironically) and Moto G7’s are the easiest to deG gle. Others have said you can do it with some Samsung Galaxy’s as well. It may depend on what phone you have in the end and how much time & energy you’re able to invest.
Another option may be installing an alternative Android-friendly open-source OS on your phone (a Linux Phone). The following thread may be of use to you. There are some resources mentioned there about deG gled phones throughout the conversation: