If you want a coffee machine and don't want to spend a lot, I implore you buy something made for making great coffee like an Aeropress[1]. You can also do worse than say a chemex[2] or a French press/cafetiere[3]. Then when you can afford it buy a nice grinder[4]. Aeropress in particular is really cheap to buy, really easy to make coffee and clean afterwards and makes fantastic coffee.
[2] or other drip maker but chemex is a classic. https://www.chemexcoffeemaker.com/
[3] I don't know what brand mine is because it was a gift but it's weirdly blue with white spots. Basically everyone in France is issued a Bodum by (I think) the government or something to the extent that they don't call them a cafetiere even though that's the French word, they call them a Bodum. https://www.bodum.com
[4] Mine is a mahlkoenig which is expensive but it was a gift from my wife (similar to when Homer buys Marge a bowling ball with his name on it) so I would make her nice coffee https://www.mahlkoenig.com/