People tend to conflate these two things but they are quite different. Each one has their own set of problems/challenges. On top of the voting infrastructure itself, you also have to think about how to prevent people from being denied the right to vote, how to prevent issuing two votes, etc., etc. Voting infrastructure and logistics (whether electronic or not) can be very complex.
Not to mention, if everyone has to travel to vote, you're mostly going to get retirees and people with a lot of free time voting.
It is important that people are able to vote without being controlled by their family members or employers, so any unconstrained remote voting should be an exception that's minimized as much as possible.
The issues are:
1. young people don't vote because they don't care, so it should help to make it easier for them.
2. once you're in the voting booth, it's too hard to remember who you decided to vote for when there's tens of choices and ballot props, like in California.
Mail-in voting also helps prevent the issue of local governments trying to sneak stuff past the voters by having offseason elections for it. Machine politics has died off in most places, but it's still strong in New York for instance. If everyone gets a mail ballot they'll notice.
Thanks for mentioning that issue, it's something that I don't hear mentioned enough in online/distance voting debates (maybe it just means that I'm not involved enough, but anyway good to hear this mentioned). It's so critical and at the same time fairly orthogonal to all the encryption / zero-knowledge proofs / quantum resistance and other cool math that nerds love to nerd about.