Some of this question is based on reputation; some guns have a reputation for being finicky. Walther PPKs in .380 were never initially designed for hollow points, and the earlier ones are picky eaters.
That said, Glocks have never, generally, had that sort of reputation.
The 42 had some early troubles; they had 9lb triggers, and slide stops that were prone to engage while there were rounds in the gun. There was a huge flap about it on Glock Talk, and presently Glock got it sorted.
My own, more recent, examples have been stone reliable with anything fed them. Have recommended them to rookie shooters. They simply run, and you can hit things.
I have literally taken new ones from the gun shop, straight to our snubby league, and run them without problems.
For the OP, if you want a 42, just do it. Get current production, and you'll be fine.
The only problem; a P365 is just a little bigger.
Moon